public WindowRestoreButton()
{
// open resource where in XAML are defined some required stuff such as icons and colors
Stream resourceStream = Application.GetResourceStream(new Uri("pack://application:,,,/Yuhan.WPF.CustomWindow;component/ButtonIcons.xaml")).Stream;
ResourceDictionary resourceDictionary = (ResourceDictionary)XamlReader.Load(resourceStream);
this.Content = resourceDictionary["WindowButtonRestoreIcon"];
this.ContentDisabled = resourceDictionary["WindowButtonRestoreIconDisabled"];
}