开发者

WPF: How to pass an instance of System.Type as the Binding.ConverterParameter via XAML?

开发者 https://www.devze.com 2023-02-10 22:28 出处:网络
I have some CLR type \"MyType\". Is i开发者_如何转开发t possible to pass the typeof(MyType) result as the Binding.ConverterParameter via XAML?

I have some CLR type "MyType". Is i开发者_如何转开发t possible to pass the typeof(MyType) result as the Binding.ConverterParameter via XAML?

{Binding Converter={StaticResource myConverter}, **ConverterParameter=???**}


You're looking for the {x:Type MyType} markup extension.

Note that you'll need to import an XML namespace for the type.

0

精彩评论

暂无评论...
验证码 换一张
取 消