Table of Contents

Class TitleBarButton

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll
public class TitleBarButton : Button, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource, IAppearanceControl, IIconControl
Inheritance
TitleBarButton
Implements
Inherited Members

Constructors

TitleBarButton()

public TitleBarButton()

Fields

ButtonTypeProperty

Identifies the ButtonType dependency property.

public static readonly DependencyProperty ButtonTypeProperty

Field Value

DependencyProperty

ButtonsForegroundProperty

Identifies the ButtonsForeground dependency property.

public static readonly DependencyProperty ButtonsForegroundProperty

Field Value

DependencyProperty

MouseOverButtonsForegroundProperty

Identifies the MouseOverButtonsForeground dependency property.

public static readonly DependencyProperty MouseOverButtonsForegroundProperty

Field Value

DependencyProperty

RenderButtonsForegroundProperty

Identifies the RenderButtonsForeground dependency property.

public static readonly DependencyProperty RenderButtonsForegroundProperty

Field Value

DependencyProperty

Properties

ButtonType

Gets or sets the type of the button.

public TitleBarButtonType ButtonType { get; set; }

Property Value

TitleBarButtonType

ButtonsForeground

Gets or sets the foreground of the navigation buttons.

public Brush ButtonsForeground { get; set; }

Property Value

Brush

IsHovered

public bool IsHovered { get; }

Property Value

bool

MouseOverButtonsForeground

Gets or sets the foreground of the navigation buttons when moused over.

public Brush? MouseOverButtonsForeground { get; set; }

Property Value

Brush

RenderButtonsForeground

public Brush RenderButtonsForeground { get; set; }

Property Value

Brush

Methods

Hover()

Forces button background to change.

public void Hover()

InvokeClick()

Invokes click on the button.

public void InvokeClick()

OnButtonTypeChanged(DependencyPropertyChangedEventArgs)

protected void OnButtonTypeChanged(DependencyPropertyChangedEventArgs e)

Parameters

e DependencyPropertyChangedEventArgs

RemoveHover()

Forces button background to change.

public void RemoveHover()