Can't get the new 2009 XAML primitives working, why?

前端 未结 2 1697
闹比i
闹比i 2020-12-16 04:07

What I\'d like to use: 2009 XAML primitives

How it would be nice to use them:



        
相关标签:
2条回答
  • 2020-12-16 04:45

    I believe the key sentence on the documentation page is this:

    In WPF, you can use XAML 2009 features but only for XAML that is not markup-compiled. Markup-compiled XAML for WPF and the BAML form of XAML do not currently support the XAML 2009 keywords and features.

    So, if you're writing loose XAML that's loaded at runtime via a XamlReader, you can use these primitives. If you're writing XAML that's compiled, you can't.

    0 讨论(0)
  • 2020-12-16 04:51

    Use

    xmlns:clr="clr-namespace:System;assembly=mscorlib" 
    

    to import clr namespaces. Then use for example clr:String to reference a specific type.

    0 讨论(0)
提交回复
热议问题