I usually define a style and control pattern in App.xml under a tab. Thus, when developing the user interface, I can see the user interface with the style used in the design view in Visual Studio 2008 with .NET3.5.
However, in another case, sometimes I only do the UserControl project, and in this case there is no App.xml, so the user interface is displayed as an appearance in the design view. It is hard to know the actual search at runtime.
Is there a way to apply a style to a UserControl? If there is a way to share the same style and template between the application project and the UserControl project, this will be perfect!
Please let me know if there is a solution.
c # styles wpf user-controls controltemplate
Aki24x
source share