Show / Hide Table of Contents

Class Slider

A Selectable<T> that represents UnityEngine.UI.Slider.

Inheritance
Object
Selectable<UnityEngine.UI.Slider>
Slider
Inherited Members
Selectable<UnityEngine.UI.Slider>.InteractableProperty
Selectable<UnityEngine.UI.Slider>.TargetGraphicProperty
Selectable<UnityEngine.UI.Slider>.TransitionProperty
Selectable<UnityEngine.UI.Slider>.ColorsProperty
Selectable<UnityEngine.UI.Slider>.SpriteStateProperty
Selectable<UnityEngine.UI.Slider>.AnimationTriggersProperty
Selectable<UnityEngine.UI.Slider>.NavigationProperty
Selectable<UnityEngine.UI.Slider>.Interactable
Selectable<UnityEngine.UI.Slider>.TargetGraphic
Selectable<UnityEngine.UI.Slider>.Transition
Selectable<UnityEngine.UI.Slider>.Colors
Selectable<UnityEngine.UI.Slider>.SpriteState
Selectable<UnityEngine.UI.Slider>.AnimationTriggers
Selectable<UnityEngine.UI.Slider>.Navigation
Selectable<UnityEngine.UI.Slider>.AddToInMainThread(UnityEngine.GameObject)
Namespace: Mux.Markup
Assembly: Mux.Markup.UI.dll
Syntax
public class Slider : Selectable<UnityEngine.UI.Slider>
Examples
<m:RectTransform
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:m="clr-namespace:Mux.Markup;assembly=Mux.Markup"
    xmlns:mu="clr-namespace:Mux.Markup;assembly=Mux.Markup.UI"
    xmlns:mue="clr-namespace:Mux.Markup.Extras;assembly=Mux.Markup.UI"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
    <mu:StandaloneInputModule />
    <mu:Canvas />
    <mu:CanvasScaler UiScale="{mu:ConstantPhysicalSize}" />
    <mu:GraphicRaycaster />
    <!--
        You have to give property name "Path" to Binding and "Name" to x:Reference
        only when you compile the interpreter with IL2CPP.
        It is because ContentPropertyAttribute does not work with IL2CPP.
    -->
    <mu:Slider
        FillRect="{Binding Path=Body, Source={x:Reference Name=fill}}"
        HandleRect="{Binding Path=Body, Source={x:Reference Name=handle}}"
        TargetGraphic="{Binding Path=Body, Source={x:Reference Name=targetGraphic}}" />
    <m:RectTransform X="{m:Stretch OffsetMin=2, OffsetMax=-2}">
        <m:RectTransform x:Name="fill" X="{m:Sized SizeDelta=4}" Y="{m:Stretch}">
            <mu:Image Color="{m:Color R=0, G=0, B=1}" />
        </m:RectTransform>
    </m:RectTransform>
    <m:RectTransform X="{m:Stretch OffsetMin=4, OffsetMax=-4}">
        <m:RectTransform x:Name="handle" X="{m:Sized SizeDelta=8}" Y="{m:Stretch}">
            <mu:Image x:Name="targetGraphic" Color="{m:Color R=0, G=1, B=0}" />
        </m:RectTransform>
    </m:RectTransform>
</m:RectTransform>

Fields

| Improve this Doc View Source

DirectionProperty

Backing store for the Direction property.

Declaration
public static readonly BindableProperty DirectionProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

FillRectProperty

Backing store for the FillRect property.

Declaration
public static readonly BindableProperty FillRectProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

HandleRectProperty

Backing store for the HandleRect property.

Declaration
public static readonly BindableProperty HandleRectProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

MaxValueProperty

Backing store for the MaxValue property.

Declaration
public static readonly BindableProperty MaxValueProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

MinValueProperty

Backing store for the MinValue property.

Declaration
public static readonly BindableProperty MinValueProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

ValueProperty

Backing store for the Value property.

Declaration
public static readonly BindableProperty ValueProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

WholeNumbersProperty

Backing store for the WholeNumbers property.

Declaration
public static readonly BindableProperty WholeNumbersProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

Direction

A property that represents UnityEngine.UI.Slider.direction.

Declaration
public UnityEngine.UI.Slider.Direction Direction { get; set; }
Property Value
Type Description
UnityEngine.UI.Slider.Direction
| Improve this Doc View Source

FillRect

A property that represents UnityEngine.UI.Slider.fillRect.

Declaration
public UnityEngine.RectTransform FillRect { get; set; }
Property Value
Type Description
UnityEngine.RectTransform
| Improve this Doc View Source

HandleRect

A property that represents P:UnityEngine.UI.Slider.handleRect.

Declaration
public UnityEngine.RectTransform HandleRect { get; set; }
Property Value
Type Description
UnityEngine.RectTransform
| Improve this Doc View Source

MaxValue

A property that represents UnityEngine.UI.Slider.maxValue.

Declaration
public float MaxValue { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

MinValue

A property that represents UnityEngine.UI.Slider.minValue.

Declaration
public float MinValue { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

Value

A property that represents UnityEngine.UI.Slider.value.

Declaration
public float Value { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

WholeNumbers

A property that represents UnityEngine.UI.Slider.wholeNumbers.

Declaration
public bool WholeNumbers { get; set; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

AwakeInMainThread()

Declaration
protected override void AwakeInMainThread()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX