There are 3 primary types of subclassing of Controls or Windows done.
1) Have a Window or Page at the root of a XAML page, building Window1, Page1, etc... 2) Building a user control - usually done with a UserControl at the root of a xaml page. 3) Building a subclass of a control - using a programming language. This is the ideal way to build a reusable control ... it allows you to specify a default look and feel in a xaml file (look up generic.xaml), but that can be overridden by users or subclassers.
I believe the scenario you mention -
"a third party using markup develops a control by inheriting from a built-in control such as ListView"
- would be best handled by #3.
In VS, use the following Item templates for those scenarios:
1) WPF Page or Window 2) WPF UserControl 3) WPF CustomControl
Hope that works for you. If not, please give me the specific scenario where it falls down with code/markup examples and we'll examine the scenario.
Thanks, Rob Relyea Program Manager, WPF Team |