d:DesignWidth
and d:DesignHeight
properties apply a width and height to the control being previewed.d:DataContext
property applies a DataContext
only at design-time. It is recommended that you use this property in conjunction with the {x:Static}
directive to reference a static property in one of your assemblies:XAML
-file with the editor for WPF instead of Avalonia. Normally this issue is solved if you close the wrong shown document and open it again.[Open With ...]
. In the opened dialog select [Avalonia XAML Editor]
.