ControlsHelper Class

Summary

A helper class that provides various controls.
Namespace
MahApps.Metro.Controls
Base Types
  • object
graph BT Type-->Base0["object"] Type["ControlsHelper"] class Type type-node

Syntax

public static class ControlsHelper

Fields

Name Constant Value Summary
ContentCharacterCasingProperty
The DependencyProperty for the CharacterCasing property. Controls whether or not content is converted to upper or lower case
static
CornerRadiusProperty
DependencyProperty for CornerRadius property.
static
DisabledVisualElementVisibilityProperty
static
FocusBorderBrushProperty
static
FocusBorderThicknessProperty
static
IsReadOnlyProperty
Gets or sets a value indicating whether the child contents of the control are not editable.
static
MouseOverBorderBrushProperty
static
RecognizesAccessKeyProperty
static

Methods

Name Value Summary
GetContentCharacterCasing(UIElement) CharacterCasing
Gets the character casing of the control
static
GetCornerRadius(UIElement) CornerRadius
The CornerRadius property allows users to control the roundness of the button corners independently by setting a radius value for each corner. Radius values that are too large are scaled so that they smoothly blend from corner to corner. (Can be used e.g. at MetroButton style) Description taken from original Microsoft description :-D
static
GetDisabledVisualElementVisibility(UIElement) Visibility
Gets the value to handle the visibility of the DisabledVisualElement in the template.
static
GetFocusBorderBrush(DependencyObject) Brush
Gets the brush used to draw the focus border.
static
GetFocusBorderThickness(DependencyObject) Thickness
Gets the brush used to draw the focus border.
static
GetIsReadOnly(UIElement) bool
Gets a value indicating whether the child contents of the control are not editable.
static
GetMouseOverBorderBrush(DependencyObject) Brush
Gets the brush used to draw the mouse over brush.
static
GetRecognizesAccessKey(UIElement) bool
Gets the value if the inner ContentPresenter use AccessText in its style.
static
SetContentCharacterCasing(UIElement, CharacterCasing) void
Sets the character casing of the control
static
SetCornerRadius(UIElement, CornerRadius) void
static
SetDisabledVisualElementVisibility(UIElement, Visibility) void
Sets the value to handle the visibility of the DisabledVisualElement in the template.
static
SetFocusBorderBrush(DependencyObject, Brush) void
Sets the brush used to draw the focus border.
static
SetFocusBorderThickness(DependencyObject, Thickness) void
Sets the brush used to draw the focus border.
static
SetIsReadOnly(UIElement, bool) void
Sets a value indicating whether the child contents of the control are not editable.
static
SetMouseOverBorderBrush(DependencyObject, Brush) void
Sets the brush used to draw the mouse over brush.
static
SetRecognizesAccessKey(UIElement, bool) void
Sets the value if the inner ContentPresenter should use AccessText in its style.
static