Creating a reusable WINDOW control
问题 Okay, this seems to be very hard, or I am missing something obvious. I want to create reusable WINDOW which will be used all over the products. It means that the control is inside WPF.Controls assembly. Themes/Generic.xaml is not a solution, I need to provide my own code for the window, such as custom message hook, etc. Here is my code in WPF.Controls.dll: public class CustomWindow : Window { static CustomWindow() { DefaultStyleKeyProperty.OverrideMetadata( typeof(CustomWindow), new