x:Static in UWP XAML
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: An app I'm working on requires a ConverterParameter to be an enum. For this, the regular way to do would be: { Binding whatever , Converter ={ StaticResource converterName }, ConverterParameter ={ x : Static namespace : Enum . Value }} However, the UWP platform x: namespace does not seem to have the Static extension. Does anyone know if there's a solution that does not rely on x:Static for comparing an enum in binding? 回答1: This works for me in a UWP: Cold 回答2: There is no Static Markup Extension on UWP (and WinRT platform too).