Show / Hide Table of Contents

Class AspectRatioFitter

A that represents UnityEngine.UI.AspectRatioFitter.

Inheritance
Object
AspectRatioFitter
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 Source

AspectModeProperty

Backing store for the AspectMode property.

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

AspectRatioProperty

Backing store for the AspectRatio property.

Declaration
public static readonly BindableProperty AspectRatioProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

AspectMode

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

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 Source

AwakeInMainThread()

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