Show / Hide Table of Contents

Class Toggle

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

Inheritance
Object
Selectable<UnityEngine.UI.Toggle>
Toggle
Inherited Members
Selectable<UnityEngine.UI.Toggle>.InteractableProperty
Selectable<UnityEngine.UI.Toggle>.TargetGraphicProperty
Selectable<UnityEngine.UI.Toggle>.TransitionProperty
Selectable<UnityEngine.UI.Toggle>.ColorsProperty
Selectable<UnityEngine.UI.Toggle>.SpriteStateProperty
Selectable<UnityEngine.UI.Toggle>.AnimationTriggersProperty
Selectable<UnityEngine.UI.Toggle>.NavigationProperty
Selectable<UnityEngine.UI.Toggle>.Interactable
Selectable<UnityEngine.UI.Toggle>.TargetGraphic
Selectable<UnityEngine.UI.Toggle>.Transition
Selectable<UnityEngine.UI.Toggle>.Colors
Selectable<UnityEngine.UI.Toggle>.SpriteState
Selectable<UnityEngine.UI.Toggle>.AnimationTriggers
Selectable<UnityEngine.UI.Toggle>.Navigation
Selectable<UnityEngine.UI.Toggle>.AddToInMainThread(UnityEngine.GameObject)
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 Source

GraphicProperty

Backing store for the Graphic property.

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

GroupProperty

Backing store for the Group property.

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

IsOnProperty

Backing store for the IsOn property.

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

ToggleTransitionProperty

Backing store for the ToggleTransition property.

Declaration
public static readonly BindableProperty ToggleTransitionProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

Graphic

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
Graphic
| Improve this Doc View Source

Group

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
ToggleGroup
| Improve this Doc View Source

IsOn

A property that represents P:UnityEngine.UI.Toggle.isOn.

Declaration
public bool IsOn { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

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 Source

AwakeInMainThread()

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