Home > OS >  How to find a resource with key in code behind? [MAUI]
How to find a resource with key in code behind? [MAUI]

Time:06-14

How to find a resource with key in code behind?

Also the equivalent to {DynamicResource}/{StaticResource} markup extensions.

In WPF the solution was:
Style=(Style)FindResource("MyStyleKey");
How to do this in MAUI?, because FindResource does not exist.

I don't feel like manually digging through all the merged dictionaries from Application.Resources

  • Related