Class UIMesh
A class that allows creating or modifying meshes with XAML and data binding.
Inherited Members
Namespace: Mux.Markup.Extras
Assembly: Mux.Markup.UI.dll
Syntax
public class UIMesh : Graphic<MuxUIMesh>
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 />
<mue:UIMesh>
<!--
You have to wrap items with mue:UIMesh.Items only when you
compile the interpreter with IL2CPP.
It is because ContentPropertyAttribute does not work with IL2CPP.
-->
<mue:UIMesh.Items>
<mue:UIVertexTriangleStream>
<!--
Wrapping with mue:UIVertexTriangleStream.Verts
for the same reason
-->
<mue:UIVertexTriangleStream.Verts>
<m:UIVertex Position="{m:Vector3 X=-0.5, Y=-0.5, Z=0}" />
<m:UIVertex Position="{m:Vector3 X=0, Y=0.5, Z=0}" />
<m:UIVertex Position="{m:Vector3 X=0.5, Y=-0.5, Z=0}" />
</mue:UIVertexTriangleStream.Verts>
</mue:UIVertexTriangleStream>
</mue:UIMesh.Items>
</mue:UIMesh>
</m:RectTransform>
Constructors
| Improve this Doc View SourceUIMesh()
Declaration
public UIMesh()
Fields
| Improve this Doc View SourceItemsProperty
Backing store for the Items property.
Declaration
public static readonly BindableProperty ItemsProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ItemsSourceProperty
Backing store for the ItemsSource property.
Declaration
public static readonly BindableProperty ItemsSourceProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ItemTemplateProperty
Backing store for the ItemTemplate property.
Declaration
public static readonly BindableProperty ItemTemplateProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceItems
A property that represents a collection of UIMeshItem.
Declaration
public ICollection<UIMeshItem> Items { get; }
Property Value
Type | Description |
---|---|
ICollection<UIMeshItem> |
Remarks
This is the content property; you can write as child elements in XAML.
ItemsSource
Gets or sets the source of entries to template and add.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable |
ItemTemplate
Gets or sets the
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate |
Methods
| Improve this Doc View SourceAddToInMainThread(UnityEngine.GameObject)
Declaration
protected override sealed void AddToInMainThread(UnityEngine.GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | gameObject |
OnBindingContextChanged()
Declaration
protected override void OnBindingContextChanged()