Class ContentSizeFitter
A
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 SourceHorizontalFitProperty
Backing store for the HorizontalFit property.
Declaration
public static readonly BindableProperty HorizontalFitProperty
Field Value
Type | Description |
---|---|
BindableProperty |
VerticalFitProperty
Backing store for the VerticalFit property.
Declaration
public static readonly BindableProperty VerticalFitProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceHorizontalFit
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 |
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 SourceAwakeInMainThread()
Declaration
protected override void AwakeInMainThread()