Here is one that bothers me!
I found on stackoverflow this Accessing XAML object in codebehind(WPF) about accessing a resource.
But what if i want reference to a textbox, for example, in my code-behind file? I didn't find that around.
Thanks!
Give it an x:Name and then in your code-behind just reference it as this.TheName.
See XAML Named Elements on MSDN.
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