Class Slider
A Selectable<T> that represents UnityEngine.UI.Slider.
Inherited Members
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 SourceDirectionProperty
Backing store for the Direction property.
Declaration
public static readonly BindableProperty DirectionProperty
Field Value
Type | Description |
---|---|
BindableProperty |
FillRectProperty
Backing store for the FillRect property.
Declaration
public static readonly BindableProperty FillRectProperty
Field Value
Type | Description |
---|---|
BindableProperty |
HandleRectProperty
Backing store for the HandleRect property.
Declaration
public static readonly BindableProperty HandleRectProperty
Field Value
Type | Description |
---|---|
BindableProperty |
MaxValueProperty
Backing store for the MaxValue property.
Declaration
public static readonly BindableProperty MaxValueProperty
Field Value
Type | Description |
---|---|
BindableProperty |
MinValueProperty
Backing store for the MinValue property.
Declaration
public static readonly BindableProperty MinValueProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ValueProperty
Backing store for the Value property.
Declaration
public static readonly BindableProperty ValueProperty
Field Value
Type | Description |
---|---|
BindableProperty |
WholeNumbersProperty
Backing store for the WholeNumbers property.
Declaration
public static readonly BindableProperty WholeNumbersProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceDirection
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 |
FillRect
A property that represents UnityEngine.UI.Slider.fillRect.
Declaration
public UnityEngine.RectTransform FillRect { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.RectTransform |
HandleRect
A property that represents P:UnityEngine.UI.Slider.handleRect.
Declaration
public UnityEngine.RectTransform HandleRect { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.RectTransform |
MaxValue
A property that represents UnityEngine.UI.Slider.maxValue.
Declaration
public float MaxValue { get; set; }
Property Value
Type | Description |
---|---|
Single |
MinValue
A property that represents UnityEngine.UI.Slider.minValue.
Declaration
public float MinValue { get; set; }
Property Value
Type | Description |
---|---|
Single |
Value
A property that represents UnityEngine.UI.Slider.value.
Declaration
public float Value { get; set; }
Property Value
Type | Description |
---|---|
Single |
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 SourceAwakeInMainThread()
Declaration
protected override void AwakeInMainThread()