Slider Controls

Sliders allow you to graphically manipulate the value of the control within a finite range by moving a thumb or value indicator along a track.

The incremental readout on a slider can be on one or both sides. When a slider control receives a value outside the specified range (that is, above the Maximum or below the Minimum), or the value is Null, the control sets its Opacity property to 0.2. The control appears disabled until the value is back within the specified range or is no longer Null.

Slider Controls Property Usage

The following table shows the properties used by each control:
PropertyHorizontal SliderVertical Slider
AllowDropXX
BackgroundXX
BorderBrushXX
BorderThicknessXX
ClipToBoundsXX
ColumnXX
ColumnSpanXX
CornerRadiusXX
EffectXX
FillXX
FlowDirectionXX
FocusableXX
FocusVisualStyleXX
FontFamilyXX
FontSizeXX
FontStretchXX
FontStyleXX
FontWeightXX
ForceCursorXX
ForegroundXX
GlareBrushXX
HeightXX
HorizontalAlignmentXX
HorizontalContentAlignmentXX
InnerBorderBrushXX
InnerBorderThicknessXX
InnerCornerRadiusXX
IsAnnotatedXX
IsEnabledXX
IsHitTestVisibleXX
IsManipulationEnabledXX
IsSharedSizeScopeXX
IsTabStopXX
LocalizationXX
MarginXX
MaxHeightXX
MaximumXX
MaxWidthXX
MinHeightXX
MinimumXX
MinWidthXX
NameXX
OpacityXX
OpacityMaskXX
OverridesDefaultStyleXX
PaddingXX
RenderTransformOriginXX
RowXX
RowSpanXX
SnapsToDevicePixelsXX
StrokeThickness
StyleXX
TabIndexXX
TagXX
TemplateXX
ThumbStyleXX
TickFrequencyXX
TicksXX
ToolTipXX
UidXX
UseLayoutRoundingXX
ValueXX
VerticalAlignmentXX
VerticalContentAlignmentXX
VisibilityXX
WidthXX

Slider Controls Property Descriptions

The following table shows the properties descriptions used by all control:
PropertyDescription
AllowDropSelect this check box to indicate that the control can accept data that is dragged onto it.
BackgroundExpand this field to select the background color of the selected control.
BorderBrushExpand this field to select the border color of the selected control.
BorderThicknessSpecifies the border thickness of a control, in pixels.
ClipToBoundsSelect this check box to clip the content of this control (or content coming from the child elements of this control) to fit into the size of the containing control.
ColumnSpecifies the column within the grid where the control is located.
ColumnSpanSpecifies the total number of columns that child content spans within a grid.
CornerRadiusSpecifies the degree to which the corners of a control are rounded.
EffectClick the arrow to expand the property, select the effect you want to apply to the control, and then configure the specific values for the effect. Valid values to select are:
  • Blur
    • Kernel Type
    • Radius
  • Drop Shadow
    • Color
    • Direction
    • Opactiy
    • Shadow Depth
FillExpand this field to select the color for the inside of the thumb control or for the interior of the shape.
FlowDirectionSpecifies the direction that text and other user interface (UI) elements flow within any parent control. Selections are:
  • Left to Right
  • Right to Left
FocusableSelect this check box to indicate that the control can receive focus.
FocusVisualStyleSpecifies a property that enables customization of appearance, effects, or other style characteristics that apply to this control when it has focus.
FontFamilySpecifies the font family for the control.
FontSizeSpecifies the font size for the control.
FontStretchSpecifies the degree to which a font is condensed or expanded on the screen.
FontStyleSpecifies the font style for the control.
FontWeightSpecifies the weight or thickness of the specified font.
ForceCursorSelect this check box to indicate that the user interface (UI) renders the cursor as declared by the Cursor property.
ForegroundExpand this field to select the foreground color.
GlareBrushExpand this field to specify the glare effect for the control.
HeightSpecifies the height of the control, in pixels.
HorizontalAlignmentSpecifies the horizontal alignment characteristics applied to this control. Selections are:
  • Left
  • Center
  • Right
  • Stretch
HorizontalContentAlignmentSpecifies the horizontal alignment of the control's content. Selections are:
  • Left
  • Center
  • Right
  • Stretch
ImageStretchSpecifies how the image should be stretched to fill the destination rectangle. Selections are:
  • Fill
  • None
  • Uniform
  • UniformToFill
InnerBorderBrushExpand this field to select the color for the inner border.
InnerBorderThicknessExpand this field to select the color for the inner border.
InnerCornerRadiusSpecifies the degree to which the corners of the inner border are rounded.
IsAnnotatedSelect this check box to indicate that value labels display with the ticks.
IsEnabledSelect this check box to indicate that this control is enabled in the user interface (UI).
IsHitTestVisibleSelect this check box to indicate that the control can possibly be returned as a hit test result from some portion of its rendered content.
IsManipulationEnabledSelect this check box to indicate that the manipulation events for the control are enabled.
IsSharedSizeScopeSelect this check box to indicate that controls are sharing size information.
IsTabStopSelect this check box to indicate that a control is included in tab navigation.
LocalizationClick the ellipsis button to open the Localization Configuration dialog box where you can configure the property to localize, the language to use for localization, and the text to localize.
MarginSpecifies the outer margin of a control.
MaxHeightSpecifies the maximum height of a control.
MaximumSpecifies the maximum value of the range of the control.
MaxWidthSpecifies the maximum width of a control.
MinHeightSpecifies the minimum height of a control.
MinimumSpecifies the minimum value of the range of the control.
MinWidthSpecifies the minimum width of a control.
NameSpecifies the identifying name of the control. The name provides a reference so that code behind, such as event handler code, can refer to a markup element during processing by a XAML processor.
OpacitySpecifies the opacity factor applied to the entire control. Valid values are 0 through 1, with up to 15 decimal places.
OpacityMaskExpand this field to select a color for the opacity mask, which is applied to any alpha-channel masking for the rendered content of this control.
OverridesDefaultStyleSelect this check box to indicate that this control incorporates style properties from theme styles.
PaddingSpecifies the amount of padding to apply to the inside edge of each side of a control.
RenderTransformOriginSpecifies the center point of any possible render transform, relative to the bounds of the element.
  • X is the horizontal origin factor, given as a value between 0 and 1.
  • Y is the vertical origin factor, given as a value between 0 and 1.
RowRowBackground
RowSpanSpecifies the total number of rows that child content spans within a grid.
SnapsToDevicePixelsSelect this check box to indicate that rendering for this control uses device-specific pixel settings.
StrokeThicknessSpecifies the width of the control's outline.
StyleSpecifies the style used by this control when it is rendered.
TabIndexSpecifies the order in which controls receive focus when the Tab key is pressed.
TagSpecifies an arbitrary object value that can be used to store custom information about this control.
TemplateClick the ellipsis button to open the Open dialog box to select a template to use.
ThumbStyleSpecifies the shape used for the thumb control. Selections are:
  • Bar
  • Diamond
  • Ellipse
  • Knob
  • Pentagon
  • Triangle
TickFrequencySpecifies the interval between tick marks.
TicksFor linear gauges and sliders, click the ellipsis button to open the Tick Property Editor dialog box to enter the marks to display for a Slider.
ToolTipSpecifies the tool-tip that displays for this control in the user interface (UI).
UidSpecifies the unique identifier (for localization) for this control.
UseLayoutRoundingSpecifies a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels.
ValueSpecifies the current magnitude of the range control.
VerticalAlignmentSpecifies the vertical alignment characteristics applied to this control. Selections are:
  • Bottom
  • Center
  • Top
  • Stretch
VerticalContentAlignmentSpecifies the vertical alignment of the control's content. Selections are:
  • Bottom
  • Center
  • Top
  • Stretch
VisiblilitySpecifies the visibility of this control. Selections are:
  • Collapsed
  • Hidden
  • Visible
WidthSpecifies the width of the control, in pixels.