You are trying to make a reference to a ResourceDictionary, which is defined inside the control from a user control property (Style in this case). Resources work like a bubble, if resources are needed for management, then it searches for a container in its resources, if they are not found, then the search in the parent container resumes if it cannot be found in its parent object .... until the resources applications will not be found in system resources.
If you want to apply a resource to a user control, you must place it in the application resources (in the App.xaml file). Try it.
source share