In Visual Studio 2019 version 16.7 Preview 2, while try to edit the template of my custom control using Edit Template option in designer which causes compilation failure due to empty properties fields generated. Please find the code genereate details.
Code in our source side
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="HorizontalContentAlignment" Value="{x:Static HorizontalAlignment.Center}" />
Code generated while edit template
<Setter Property="FocusVisualStyle">
<Setter.Value>
<Null/>
</Setter.Value>
</Setter>
<Setter Property="HorizontalContentAlignment">
<Setter.Value>
<Static/>
</Setter.Value>
</Setter>
The issue reproduce only in Preview version and it working fine previous version.
Project Framework : 4.6v
Error : Severity Code Description Project File Line Suppression State
Error The tag 'Static' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. Line 85 Position 22. ControlTesting MainWindow.xaml 85
Please suggest any solution to fix this.
Thanks