I would like to define two similar-looking views on some graphical data. One view is an editor and the other is a viewer that shows the data being transformed. I am not sure what the best way is to share code and resources between the two views, but I have tentatively decided to make a UserControl to represent the part of the visual presentation that is common between the two.
It makes the most sense to store Styles and ControlTemplates as resources of the UserControl, but how, in XAML, can I use a style defined in the UserControl within one of the views (where the UserControl is a child of the view)?