Show / Hide Table of Contents

Class ContentSizeFitter

A that represents UnityEngine.UI.ContentSizeFitter.

Inheritance
Object
ContentSizeFitter
Namespace: Mux.Markup
Assembly: Mux.Markup.UI.dll
Syntax
public class ContentSizeFitter : Behaviour<UnityEngine.UI.ContentSizeFitter>
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">
    <mu:StandaloneInputModule />
    <mu:Canvas />
    <mu:CanvasScaler UiScale="{mu:ConstantPhysicalSize}" />
    <mu:GraphicRaycaster />
    <mu:ContentSizeFitter
        VerticalFit="PreferredSize"
        HorizontalFit="PreferredSize" />
    <mu:LayoutElement
        PreferredWidth="99"
        PreferredHeight="50" />
    <mu:Image />
</m:RectTransform>

Fields

| Improve this Doc View Source

HorizontalFitProperty

Backing store for the HorizontalFit property.

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

VerticalFitProperty

Backing store for the VerticalFit property.

Declaration
public static readonly BindableProperty VerticalFitProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

HorizontalFit

A property that represents UnityEngine.UI.ContentSizeFitter.horizontalFit.

Declaration
public UnityEngine.UI.ContentSizeFitter.FitMode HorizontalFit { get; set; }
Property Value
Type Description
UnityEngine.UI.ContentSizeFitter.FitMode
| Improve this Doc View Source

VerticalFit

A property that represents UnityEngine.UI.ContentSizeFitter.verticalFit.

Declaration
public UnityEngine.UI.ContentSizeFitter.FitMode VerticalFit { get; set; }
Property Value
Type Description
UnityEngine.UI.ContentSizeFitter.FitMode

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