I have a .xaml UserControl named MyUserControl.xaml and I want to set its resource URI.
Per default, WPF generates a URI that includes a resource name, which is equal to the resource it belongs to such as
"/MyNamespace;component/myusercontrol.xaml"
for the .xaml named MyUserControl.xaml
How can I have a UserControl MyUserControl.xaml
and make WPF generate an individual resource identifies such as
"/MyNamespace;component/myusercontrol_A.xaml"
or
"/MyNamespace;component/myusercontrol_B.xaml"
?
The reason why I want to do that is described here.
In the image below you can see the resource identifier I am talking about:
and therein: