-
Notifications
You must be signed in to change notification settings - Fork 3
Menu
Back to home | Back to Reference | View raw text
A menu control that can display and organize commands within various drop-down elements. This differs from the WPF menu with a visual style that matches other Solid Shine UI controls.
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SolidShineUi
SolidShineUi.Menu[[Menu]]
end
subgraph System.Windows.Controls
System.Windows.Controls.Menu[[Menu]]
end
System.Windows.Controls.Menu --> SolidShineUi.Menu
Type | Name | Methods |
---|---|---|
Brush |
BorderBrush Get or set the brush used for the border of the menu's drop-down area. |
get, set |
Brush |
CheckedBrush Get or set the brush to use for the check highlight for checked menu items. |
get, set |
ColorScheme |
ColorScheme Get or set the color scheme used for this control. The color scheme can quickly apply a whole visual style to your control. |
get, set |
Brush |
DisabledBrush Get or set the brush used for the foreground of menu items that are disabled. |
get, set |
Brush |
HighlightBrush Get or set the brush used for the top-level menu items in the menu bar, when the mouse is over them or they have keyboard focus. |
get, set |
Brush |
HighlightSubitemBrush Get or set the brush used for menu items that aren't top-level on the menu bar, when the mouse is over them or they have keyboard focus. |
get, set |
Brush |
MenuBackground Get or set the brush used for the background of the menu's drop-down area. This is different from the Background brush, which set the background of the top menu bar. |
get, set |
Returns | Name |
---|---|
void |
OnColorSchemeChanged (DependencyObject d, DependencyPropertyChangedEventArgs e) |
Returns | Name |
---|---|
void |
ApplyColorScheme (... )Apply a color scheme to this control. The color scheme can quickly apply a whole visual style to the control. |
A menu control that can display and organize commands within various drop-down elements. This differs from the WPF menu with a visual style that matches other Solid Shine UI controls.
Menu
public Menu()
public static void OnColorSchemeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Type | Name | Description |
---|---|---|
DependencyObject |
d | |
DependencyPropertyChangedEventArgs |
e |
public void ApplyColorScheme(ColorScheme cs)
Type | Name | Description |
---|---|---|
ColorScheme |
cs | The color scheme to apply. |
Apply a color scheme to this control. The color scheme can quickly apply a whole visual style to the control.
public void ApplyColorScheme(HighContrastOption hco)
Type | Name | Description |
---|---|---|
HighContrastOption |
hco | The high-contrast color scheme to apply. |
Apply a color scheme to this control. The color scheme can quickly apply a whole visual style to the control.
public ColorScheme ColorScheme { get; set; }
Get or set the color scheme used for this control. The color scheme can quickly apply a whole visual style to your control.
public Brush MenuBackground { get; set; }
Get or set the brush used for the background of the menu's drop-down area. This is different from the Background brush, which set the background of the top menu bar.
public Brush DisabledBrush { get; set; }
Get or set the brush used for the foreground of menu items that are disabled.
public Brush BorderBrush { get; set; }
Get or set the brush used for the border of the menu's drop-down area.
public Brush HighlightBrush { get; set; }
Get or set the brush used for the top-level menu items in the menu bar, when the mouse is over them or they have keyboard focus.
public Brush HighlightSubitemBrush { get; set; }
Get or set the brush used for menu items that aren't top-level on the menu bar, when the mouse is over them or they have keyboard focus.
public Brush CheckedBrush { get; set; }
Get or set the brush to use for the check highlight for checked menu items.
public event DependencyPropertyChangedEventHandler ColorSchemeChanged
Raised when the ColorScheme property is changed.
Generated with ModularDoc