I have a control that I would like to be static, but instead of writing it in code, i would like it to be in the XAML, so that I can still design edit and play around with it in Blend.
Basically, within my class, I have the code:
public static TextBox s_notepad = new TextBox();
I’ve altered my code to attempt to make it easier to explain.
If anyone knows the equivalent to this in XAML, it would be fantastic if they could let me know.
Thanks,
Lloyd
XAML code works by instance you cannot declare static code into your XAML.
But you can use the x:Static keywords in order to have access to static property from other objects.