Skip to content

ChromeButtons

JaykeBird edited this page Feb 21, 2023 · 10 revisions

Back to home | Back to Reference | View raw text

ChromeButtons class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SolidShineUi
  SolidShineUi.ChromeButtons[[ChromeButtons]]
  end
  subgraph System.Windows.Markup
System.Windows.Markup.IComponentConnector[[IComponentConnector]]
  end
  subgraph System.Windows.Controls
System.Windows.Controls.UserControl[[UserControl]]
  end
System.Windows.Markup.IComponentConnector --> SolidShineUi.ChromeButtons
System.Windows.Controls.UserControl --> SolidShineUi.ChromeButtons
Loading

Members

Properties

Public properties

Type Name Methods
Thickness ButtonPadding
Gets or sets the internal padding in each of the caption buttons.
get, set
CaptionType DisplayType
Gets or sets the visibility of the caption buttons, specifically which buttons should be visible.
get, set
Brush HighlightBrush
Get or set the brush used when a button is being highlighted.
get, set
Thickness MarginButton
Gets or sets the margin (spacing) around each of the caption buttons.
get, set
Brush SelectionBrush
Get or set the brush used when a button is being clicked.
get, set

Methods

Public methods

Returns Name
void InitializeComponent()
InitializeComponent

Details

Inheritance

  • IComponentConnector
  • UserControl

Nested types

Enums

  • CaptionType

Constructors

ChromeButtons

public ChromeButtons()
Summary

Initializes a new instance of the ChromeButtons class.

Methods

InitializeComponent

public virtual void InitializeComponent()
Summary

InitializeComponent

Properties

ButtonPadding

public Thickness ButtonPadding { get; set; }
Summary

Gets or sets the internal padding in each of the caption buttons.

MarginButton

public Thickness MarginButton { get; set; }
Summary

Gets or sets the margin (spacing) around each of the caption buttons.

DisplayType

public CaptionType DisplayType { get; set; }
Summary

Gets or sets the visibility of the caption buttons, specifically which buttons should be visible.

Remarks

Note that this does not disable these functions from being possible with a window, it only hides the buttons in the top corner. Please use FlatWindow.DisableMaximizeAction and FlatWindow.DisableMinimizeAction to disable actions in a window.

Value

The visible buttons.

SelectionBrush

public Brush SelectionBrush { get; set; }
Summary

Get or set the brush used when a button is being clicked.

HighlightBrush

public Brush HighlightBrush { get; set; }
Summary

Get or set the brush used when a button is being highlighted.

Generated with ModularDoc

Clone this wiki locally