I know you can access page resources by using the following code:
btn.Style = Resources["ButtonStle"] as Style;
But how do you access an application wide resource?
You can access the application through the static Application.Current property.
btn.Style = Application.Current.Resources["ButtonStyle"] as Style;
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