Class AspectRatioFitter
A
Namespace: Mux.Markup
Assembly: Mux.Markup.UI.dll
Syntax
public class AspectRatioFitter : Behaviour<UnityEngine.UI.AspectRatioFitter>
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 />
<mu:ContentSizeFitter HorizontalFit="PreferredSize" VerticalFit="PreferredSize" />
<mu:LayoutElement PreferredWidth="99" PreferredHeight="50" />
<mu:AspectRatioFitter AspectMode="WidthControlsHeight" AspectRatio="1" />
<mu:Image />
</m:RectTransform>
Fields
| Improve this Doc View SourceAspectModeProperty
Backing store for the AspectMode property.
Declaration
public static readonly BindableProperty AspectModeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
AspectRatioProperty
Backing store for the AspectRatio property.
Declaration
public static readonly BindableProperty AspectRatioProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceAspectMode
A property that represents UnityEngine.UI.AspectRatioFitter.aspectMode.
Declaration
public UnityEngine.UI.AspectRatioFitter.AspectMode AspectMode { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UI.AspectRatioFitter.AspectMode |
AspectRatio
A property that represents UnityEngine.UI.AspectRatioFitter.aspectRatio.
Declaration
public float AspectRatio { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceAwakeInMainThread()
Declaration
protected override void AwakeInMainThread()