Class Toggle
A Selectable<T> that represents UnityEngine.UI.Toggle.
Inherited Members
Namespace: Mux.Markup
Assembly: Mux.Markup.UI.dll
Syntax
public class Toggle : Selectable<UnityEngine.UI.Toggle>
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.
-->
<m:RectTransform>
<mu:Toggle Graphic="{Binding Path=Body, Source={x:Reference Name=graphic}}" />
<m:RectTransform X="{m:Stretch}" Y="{m:Stretch}">
<mu:Image x:Name="graphic" Color="{m:Color R=0, G=0, B=1}" />
</m:RectTransform>
</m:RectTransform>
</m:RectTransform>
Fields
| Improve this Doc View SourceGraphicProperty
Backing store for the Graphic property.
Declaration
public static readonly BindableProperty GraphicProperty
Field Value
Type | Description |
---|---|
BindableProperty |
GroupProperty
Backing store for the Group property.
Declaration
public static readonly BindableProperty GroupProperty
Field Value
Type | Description |
---|---|
BindableProperty |
IsOnProperty
Backing store for the IsOn property.
Declaration
public static readonly BindableProperty IsOnProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ToggleTransitionProperty
Backing store for the ToggleTransition property.
Declaration
public static readonly BindableProperty ToggleTransitionProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceGraphic
A property that represents P:UnityEngine.UI.Toggle.graphic.
Declaration
public UnityEngine.UI.Graphic Graphic { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UI.Graphic |
See Also
| Improve this Doc View SourceGroup
A property that represents P:UnityEngine.UI.Toggle.group.
Declaration
public UnityEngine.UI.ToggleGroup Group { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UI.ToggleGroup |
See Also
| Improve this Doc View SourceIsOn
A property that represents P:UnityEngine.UI.Toggle.isOn.
Declaration
public bool IsOn { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ToggleTransition
A property that represents UnityEngine.UI.Toggle.toggleTransition.
Declaration
public UnityEngine.UI.Toggle.ToggleTransition ToggleTransition { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UI.Toggle.ToggleTransition |
Methods
| Improve this Doc View SourceAwakeInMainThread()
Declaration
protected override void AwakeInMainThread()