<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style TargetType="{x:Type dxg:Tree***<caret>***ListView}">
<Setter Property="AutoWidth" Value="True" />
<Setter Property="ShowIndicator" Value="False" />
Refactorings - XAML - The "Import Type" refactoring is unavailable on the {x:Type} argument
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
The Import Type refactoring can now be used for markup extensions and attached properties. It is now available in this case:
XAML<Window x:Class="WPFDeclareXAMLNamespace.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Them<<:caret:>>eManager.ThemeName="MetropolisLight"
Title="MainWindow" Height="350" Width="525">
</Window>
and in this case:
XAML<Button Foreground="{Custome<<:caret:>>Markup}">
OK
</Button>