开发者

WPF: How to pass an instance of System.Type 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜