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 :-
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.