Class Scrollbar
A Selectable<T> that represents UnityEngine.UI.Scrollbar.
Inherited Members
Namespace: Mux.Markup
Assembly: Mux.Markup.UI.dll
Syntax
public class Scrollbar : Selectable<UnityEngine.UI.Scrollbar>
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:Scrollbar HandleRect="{Binding Path=Body, Source={x:Reference Name=handle}}" />
<m:RectTransform x:Name="handle">
<mu:Image Color="{m:Color R=0, G=0, B=1}" />
</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 |
HandleRectProperty
Backing store for the HandleRect property.
Declaration
public static readonly BindableProperty HandleRectProperty
Field Value
Type | Description |
---|---|
BindableProperty |
NumberOfStepsProperty
Backing store for the NumberOfSteps property.
Declaration
public static readonly BindableProperty NumberOfStepsProperty
Field Value
Type | Description |
---|---|
BindableProperty |
SizeProperty
Backing store for the Size property.
Declaration
public static readonly BindableProperty SizeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ValueProperty
Backing store for the Value property.
Declaration
public static readonly BindableProperty ValueProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceDirection
A property that represents UnityEngine.UI.Scrollbar.direction.
Declaration
public UnityEngine.UI.Scrollbar.Direction Direction { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UI.Scrollbar.Direction |
HandleRect
A property that represents UnityEngine.UI.Scrollbar.handleRect.
Declaration
public UnityEngine.RectTransform HandleRect { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.RectTransform |
NumberOfSteps
A property that represents UnityEngine.UI.Scrollbar.numberOfSteps.
Declaration
public int NumberOfSteps { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Size
A property that represents UnityEngine.UI.Scrollbar.size.
Declaration
public float Size { get; set; }
Property Value
Type | Description |
---|---|
Single |
Value
A property that represents UnityEngine.UI.Scrollbar.value.
Declaration
public float Value { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceAwakeInMainThread()
Declaration
protected override void AwakeInMainThread()