WindowButtonCommands Class
Namespace
MahApps.Metro.Controls
Base Types
  • ContentControl
graph BT Type-->Base0["ContentControl"] Type["WindowButtonCommands"] class Type type-node

Syntax

[TemplatePart(Name = "PART_Min", Type = typeof(Button))]
[TemplatePart(Name = "PART_Max", Type = typeof(Button))]
[TemplatePart(Name = "PART_Close", Type = typeof(Button))]
[StyleTypedProperty(Property = nameof(LightMinButtonStyle), StyleTargetType = typeof(Button))]
[StyleTypedProperty(Property = nameof(LightMaxButtonStyle), StyleTargetType = typeof(Button))]
[StyleTypedProperty(Property = nameof(LightCloseButtonStyle), StyleTargetType = typeof(Button))]
[StyleTypedProperty(Property = nameof(DarkMinButtonStyle), StyleTargetType = typeof(Button))]
[StyleTypedProperty(Property = nameof(DarkMaxButtonStyle), StyleTargetType = typeof(Button))]
[StyleTypedProperty(Property = nameof(DarkCloseButtonStyle), StyleTargetType = typeof(Button))]
public class WindowButtonCommands : ContentControl

Attributes

Type Description
TemplatePart
TemplatePart
TemplatePart
StyleTypedProperty
StyleTypedProperty
StyleTypedProperty
StyleTypedProperty
StyleTypedProperty
StyleTypedProperty

Constructors

Name Summary
WindowButtonCommands()

Events

Fields

Name Field Type Constant Value Summary
CloseProperty DependencyProperty
Identifies the Close dependency property.
static
DarkCloseButtonStyleProperty DependencyProperty
Identifies the DarkCloseButtonStyle dependency property.
static
DarkMaxButtonStyleProperty DependencyProperty
Identifies the DarkMaxButtonStyle dependency property.
static
DarkMinButtonStyleProperty DependencyProperty
Identifies the DarkMinButtonStyle dependency property.
static
LightCloseButtonStyleProperty DependencyProperty
Identifies the LightCloseButtonStyle dependency property.
static
LightMaxButtonStyleProperty DependencyProperty
Identifies the LightMaxButtonStyle dependency property.
static
LightMinButtonStyleProperty DependencyProperty
Identifies the LightMinButtonStyle dependency property.
static
MaximizeProperty DependencyProperty
Identifies the Maximize dependency property.
static
MinimizeProperty DependencyProperty
Identifies the Minimize dependency property.
static
ParentWindowProperty DependencyProperty
Identifies the ParentWindow dependency property.
static
RestoreProperty DependencyProperty
Identifies the Restore dependency property.
static
ThemeProperty DependencyProperty
Identifies the Theme dependency property.
static

Properties

Name Property Type Summary
Close string
Gets or sets the close button tooltip.
DarkCloseButtonStyle Style
Gets or sets the value indicating current dark style for the close button.
DarkMaxButtonStyle Style
Gets or sets the value indicating current dark style for the maximize button.
DarkMinButtonStyle Style
Gets or sets the value indicating current dark style for the minimize button.
LightCloseButtonStyle Style
Gets or sets the value indicating current light style for the close button.
LightMaxButtonStyle Style
Gets or sets the value indicating current light style for the maximize button.
LightMinButtonStyle Style
Gets or sets the value indicating current light style for the minimize button.
Maximize string
Gets or sets the maximize button tooltip.
Minimize string
Gets or sets the minimize button tooltip.
ParentWindow Window
Gets the window.
Restore string
Gets or sets the restore button tooltip.
Theme string
Gets or sets the value indicating current theme.