I need to create a MarkupExtension for my WPF application that will need to be able to take an arbitrary number of parameters that will be used for token replacement in internationalized strings. Our internationalization code uses a params array to take these parameters. Since I want these to be passable from XAML, is there a way to specify these parameters without explicitly creating an x:Array in XAML?
I think you have to use the x:Array, I don't know any other way (and can't even think of any other way that will be compatible with the markup extension {} syntax).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With