Back to Devexpress

DXSliderThumbAppearance.PressedWidth Property

maui-devexpress-dot-maui-dot-editors-dot-dxsliderthumbappearance-d55520a1.md

latest2.2 KB
Original Source

DXSliderThumbAppearance.PressedWidth Property

Gets or sets the thumb width in the pressed state. This is a bindable property.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public double PressedWidth { get; set; }

Property Value

TypeDescription
Double

The thumb width.

|

Example

The following example changes thumb appearance in DXSlider and DXRangeSlider controls:

xml
<dxe:DXSlider Value="25">
    <dxe:DXSlider.ThumbAppearance>
        <dxe:DXSliderThumbAppearance 
            BackgroundColor="orange" 
            BorderColor="black"
            DisabledBackgroundColor="gray"
            DisabledBorderColor="black"
            BorderThickness="2"
            CornerRadius="25"
            Height="25"
            Width="25"
            PressedHeight="15"
            PressedWidth="15" />
    </dxe:DXSlider.ThumbAppearance> 
</dxe:DXSlider>

<dxe:DXRangeSlider StartValue="15" EndValue="85">
    <dxe:DXRangeSlider.StartThumbAppearance>
        <dxe:DXSliderThumbAppearance 
            BackgroundColor="orange" 
            BorderColor="black"
            DisabledBackgroundColor="gray"
            DisabledBorderColor="black"
            BorderThickness="2"
            CornerRadius="25"
            Height="25"
            Width="25" />
    </dxe:DXRangeSlider.StartThumbAppearance> 

    <dxe:DXRangeSlider.EndThumbAppearance>
        <dxe:DXSliderThumbAppearance ... />
    </dxe:DXRangeSlider.EndThumbAppearance> 
</dxe:DXRangeSlider>

See Also

DXSliderThumbAppearance Class

DXSliderThumbAppearance Members

DevExpress.Maui.Editors Namespace