Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Application.Resources StaticResource not found for key

$
0
0

Hi,

I am trying to define a Style for a custom control I have created in the Application.Resources section of my App.xaml.cs file. However the page that references this file raises an exception (StaticResource not found for key).

The sample here :-

https://github.com/xamarin/xamarin-forms-samples

Doesn't use a Key or a Custom Control for it's Application.Resources so I am not exactly sure how to get this working.

Is there any more comprehensive examples available or any pointers as to how to get this working?

Update: The same Style defined in the Page's Resources section, works successfully.

Thanks

Paul Diston


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>