I have overriden the WPF default Maximize, Minimize buttons like explained here. But, in my case, instead of using an Image
to override background image for that bu
There is not much to inherit. I suggest you write simple handlers and assign them for button click events. Handlers can be as follows:
protected void MinimizeClick(object sender, RoutedEventArgs e)
{
WindowState = WindowState.Minimized;
}
protected void MaximizeClick(object sender, RoutedEventArgs e)
{
WindowState = WindowState.Maximized ;
}
protected void RestoreClick(object sender, RoutedEventArgs e)
{
WindowState = (WindowState == WindowState.Normal) ? WindowState.Maximized : WindowState.Normal;
}
protected void CloseClick(object sender, RoutedEventArgs e)
{
Close();
}