I have the following class defined:
public static class A
{
public static readonly double MyWidth = 200d;
}
If I want to send "MyWidth" as a command parameter to a button, how do I set up the xaml for that?
<Button Caption="Large" CommandParameter="What should I type here?">
Thanks!
CommandParameter="{x:Static ns:A.MyWidth}"
where ns
has been mapped to the appropriate CLR namespace.
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