Class ToggleGroup
A
Namespace: Mux.Markup
Assembly: Mux.Markup.UI.dll
Syntax
public class ToggleGroup : Behaviour<UnityEngine.UI.ToggleGroup>
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:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:playgroundMarkup="clr-namespace:Mux.Playground.Markup;assembly=Assembly-CSharp">
<mu:StandaloneInputModule />
<mu:Canvas />
<mu:CanvasScaler UiScale="{mu:ConstantPhysicalSize}" />
<mu:GraphicRaycaster />
<mu:ToggleGroup x:Name="group" />
<!--
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.
-->
<playgroundMarkup:ToggleTransform
Group="{Binding Path=Body, Source={x:Reference Name=group}}"
X="{m:Stretch AnchorMax=0.5}" />
<playgroundMarkup:ToggleTransform
Group="{Binding Path=Body, Source={x:Reference Name=group}}"
X="{m:Stretch AnchorMin=0.5}" />
</m:RectTransform>
Fields
| Improve this Doc View SourceAllowSwitchOffProperty
Backing store for the AllowSwitchOff property.
Declaration
public static readonly BindableProperty AllowSwitchOffProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceAllowSwitchOff
A property that represents UnityEngine.UI.ToggleGroup.allowSwitchOff.
Declaration
public bool AllowSwitchOff { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceAwakeInMainThread()
Declaration
protected override void AwakeInMainThread()