none
Custom Control edit template cause compilation failure in Visual Studio 2019 (version 16.7 Preview 2) RRS feed

  • Question


  • 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

    Reproducible Sample : https://drive.google.com/file/d/1sJG2CPzHuw6r5LwH06vm77eVmgY49eRX/view?usp=sharing

    Please suggest any solution to fix this.

    Thanks


















































    Thursday, June 11, 2020 9:22 AM

All replies

  • Hi Magi02,

    I find a same thread in Q&A forum. You could keep following it. 

    In addition, we suggest you could report it by Help->Send Feedback -> Report a Problem, then you could share the link here, the community members with same issues will help you vote it.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Friday, June 12, 2020 10:37 AM