This question is locked. New answers and comments are not allowed.
I have resource dictionary declaration inside a Usercontrol like this:
<UserControl.Resources>
<ResourceDictionary Source="/Phoenix.CAG;Component/Themes/Black.xaml"/>
</UserControl.Resources>
I want to put the resource dictionary only in the App.xaml and let it apply in this usercontrol. Right now I also have this declared inside my app.xaml as
<Application.Resources>
<ResourceDictionary Source="/Phoenix.CAG;Component/Themes/Black.xaml"/>
</Application.Resources>
Is there any way to stop repeating the use of the same resource dictionary name in multiple places and put them only in one location and make it work?
Can you please let me know how can I do that?
Regards,
Syed Aalam
<UserControl.Resources>
<ResourceDictionary Source="/Phoenix.CAG;Component/Themes/Black.xaml"/>
</UserControl.Resources>
I want to put the resource dictionary only in the App.xaml and let it apply in this usercontrol. Right now I also have this declared inside my app.xaml as
<Application.Resources>
<ResourceDictionary Source="/Phoenix.CAG;Component/Themes/Black.xaml"/>
</Application.Resources>
Is there any way to stop repeating the use of the same resource dictionary name in multiple places and put them only in one location and make it work?
Can you please let me know how can I do that?
Regards,
Syed Aalam