Show / Hide Table of Contents

Class Component<T>

A Node that represents UnityEngine.Component.

Inheritance
Object
BindableObject
Node
Component<T>
Behaviour<T>
Renderer<T>
Transform<T>
Implements
INotifyPropertyChanged
IDynamicResourceHandler
Inherited Members
Node.AddTo(UnityEngine.GameObject)
Node.DestroyMuxInMainThread()
BindableObject.BindingContextProperty
Xamarin.Forms.BindableObject.add_PropertyChanging(Xamarin.Forms.PropertyChangingEventHandler)
Xamarin.Forms.BindableObject.remove_PropertyChanging(Xamarin.Forms.PropertyChangingEventHandler)
BindableObject.ClearValue(BindableProperty)
BindableObject.ClearValue(BindablePropertyKey)
BindableObject.GetValue(BindableProperty)
BindableObject.GetValues(BindableProperty, BindableProperty)
BindableObject.GetValues(BindableProperty, BindableProperty, BindableProperty)
BindableObject.IsSet(BindableProperty)
BindableObject.RemoveBinding(BindableProperty)
BindableObject.SetBinding(BindableProperty, BindingBase)
BindableObject.SetInheritedBindingContext(BindableObject, Object)
BindableObject.ApplyBindings()
BindableObject.OnBindingContextChanged()
BindableObject.OnPropertyChanged(String)
BindableObject.OnPropertyChanging(String)
BindableObject.UnapplyBindings()
BindableObject.IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)
BindableObject.SetValue(BindableProperty, Object)
BindableObject.SetValue(BindablePropertyKey, Object)
BindableObject.SetValueCore(BindableProperty, Object, SetValueFlags)
BindableObject.CoerceValue(BindableProperty)
BindableObject.CoerceValue(BindablePropertyKey)
BindableObject.Dispatcher
BindableObject.BindingContext
BindableObject.PropertyChanged
BindableObject.PropertyChanging
BindableObject.BindingContextChanged
Namespace: Mux.Markup
Assembly: Mux.Markup.dll
Syntax
public class Component<T> : Node, INotifyPropertyChanged, IDynamicResourceHandler where T : UnityEngine.Component
Type Parameters
Name Description
T

Fields

| Improve this Doc View Source

BodyProperty

Backing store for the Body property.

Declaration
public static readonly BindableProperty BodyProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

Body

A property to get or set the underlaying UnityEngine.Component.

Declaration
public T Body { get; protected set; }
Property Value
Type Description
T
Remarks

It is expected to be used to bind the UnityEngine.Component to properties of other Node. It causes unpredictable results to using this property for other purposes.

Methods

| Improve this Doc View Source

AddToInMainThread(UnityEngine.GameObject)

A method that actually adds the node to UnityEngine.GameObject in the main thread.

Declaration
protected override void AddToInMainThread(UnityEngine.GameObject gameObject)
Parameters
Type Name Description
UnityEngine.GameObject gameObject
Overrides
Node.AddToInMainThread(UnityEngine.GameObject)
Remarks

The caller must call this method in the main thread.

| Improve this Doc View Source

AwakeInMainThread()

A methot that actually wakes the node up in the main thread.

Declaration
protected override void AwakeInMainThread()
Overrides
Node.AwakeInMainThread()
Remarks

The caller must call this method in the main thread after calling AddToInMainThread(UnityEngine.GameObject).

| Improve this Doc View Source

CreateBindableModifierProperty(String, Type, BindableProperty.CreateDefaultValueDelegate)

A convenient method to create a new instance of the BindableProperty class that represents Component<T>.Modifier.

Declaration
protected static BindableProperty CreateBindableModifierProperty(string property, Type declarer, BindableProperty.CreateDefaultValueDelegate defaultValueCreator)
Parameters
Type Name Description
String property

The name of the BindableProperty.

Type declarer

The type of the declaring object.

BindableProperty.CreateDefaultValueDelegate defaultValueCreator

A Func used to initialize default value for reference types.

Returns
Type Description
BindableProperty
Remarks

This sets Body property and lets Component<T>.Modifier inherit BindingContext. Those states must be maintained by the caller.

Implements

System.ComponentModel.INotifyPropertyChanged
Xamarin.Forms.Internals.IDynamicResourceHandler
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX