Class CaptionButtons
Draws window minimize / maximize / close buttons in a TitleBar when managed client decorations are enabled.
[TemplatePart("PART_CloseButton", typeof(Button))]
[TemplatePart("PART_RestoreButton", typeof(Button))]
[TemplatePart("PART_MinimizeButton", typeof(Button))]
[TemplatePart("PART_FullScreenButton", typeof(Button))]
[PseudoClasses(new string[] { ":minimized", ":normal", ":maximized", ":fullscreen" })]
public class CaptionButtons : TemplatedControl, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue
- Inheritance
-
CaptionButtons
- Implements
- Inherited Members
- Extension Methods
Constructors
CaptionButtons()
public CaptionButtons()
Properties
HostWindow
Currently attached window.
protected Window? HostWindow { get; }
Property Value
Methods
Attach(Window)
public virtual void Attach(Window hostWindow)
Parameters
hostWindow
Window
Detach()
public virtual void Detach()
OnApplyTemplate(TemplateAppliedEventArgs)
Called when the control's template is applied. In simple terms, this means the method is called just before the control is displayed.
protected override void OnApplyTemplate(TemplateAppliedEventArgs e)
Parameters
e
TemplateAppliedEventArgsThe event args.
OnClose()
protected virtual void OnClose()
OnMinimize()
protected virtual void OnMinimize()
OnRestore()
protected virtual void OnRestore()
OnToggleFullScreen()
protected virtual void OnToggleFullScreen()