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.
精彩评论