Class InputField
A Selectable<T> that represents UnityEngine.UI.InputField.
Inherited Members
Namespace: Mux.Markup
Assembly: Mux.Markup.UI.dll
Syntax
public class InputField : Selectable<UnityEngine.UI.InputField>
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"
xmlns:playgroundMarkup="clr-namespace:Mux.Playground.Markup;assembly=Assembly-CSharp">
<!--
Note that you can use "using" scheme instead of "clr-namespace" to omit assembly
specification if:
- the referenced type is in an assembly already loaded. (interpreter)
- the referenced type is in the assembly containing the compiled XAML. (compiler)
-->
<mu:StandaloneInputModule />
<mu:Canvas />
<mu:CanvasScaler UiScale="{mu:ConstantPhysicalSize}" />
<mu:GraphicRaycaster />
<mu:InputField x:Name="inputField" LineType="MultiLineNewline">
<mu:InputField.Text>
You have to give property name "Path" to Binding and "Name" to x:Reference
only when you compile the interpreter with IL2CPP.
It is because ContentPropertyAttribute does not work with IL2CPP.
</mu:InputField.Text>
</mu:InputField>
<mu:Image
Body="{Binding Path=Placeholder, Source={x:Reference Name=inputField}}"
Color="{m:Color R=0, G=0, B=1}" />
<playgroundMarkup:TextTransform
TextComponent="{Binding Path=TextComponent, Source={x:Reference Name=inputField}}"
X="{m:Stretch}"
Y="{m:Stretch}" />
</m:RectTransform>
Fields
| Improve this Doc View SourceCaretBlinkRateProperty
Backing store for the CaretBlinkRate property.
Declaration
public static readonly BindableProperty CaretBlinkRateProperty
Field Value
Type | Description |
---|---|
BindableProperty |
CaretColorProperty
Backing store for the CaretColor property.
Declaration
public static readonly BindableProperty CaretColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
CaretWidthProperty
Backing store for the CaretWidth property.
Declaration
public static readonly BindableProperty CaretWidthProperty
Field Value
Type | Description |
---|---|
BindableProperty |
CharacterLimitProperty
Backing store for the CharacterLimit property.
Declaration
public static readonly BindableProperty CharacterLimitProperty
Field Value
Type | Description |
---|---|
BindableProperty |
CharacterValidationProperty
Backing store for the CharacterValidation property.
Declaration
public static readonly BindableProperty CharacterValidationProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ContentTypeProperty
Backing store for the ContentType property.
Declaration
public static readonly BindableProperty ContentTypeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
CustomCaretColorProperty
Backing store for the CustomCaretColor property.
Declaration
public static readonly BindableProperty CustomCaretColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
HideMobileInputProperty
Backing store for the HideMobileInput property.
Declaration
public static readonly BindableProperty HideMobileInputProperty
Field Value
Type | Description |
---|---|
BindableProperty |
InputTypeProperty
Backing store for the InputType property.
Declaration
public static readonly BindableProperty InputTypeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
KeyboardTypeProperty
Backing store for the KeyboardType property.
Declaration
public static readonly BindableProperty KeyboardTypeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
LineTypeProperty
Backing store for the LineType property.
Declaration
public static readonly BindableProperty LineTypeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
PlaceholderProperty
Backing store for the Placeholder property.
Declaration
public static readonly BindableProperty PlaceholderProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ReadOnlyProperty
Backing store for the ReadOnly property.
Declaration
public static readonly BindableProperty ReadOnlyProperty
Field Value
Type | Description |
---|---|
BindableProperty |
SelectionColorProperty
Backing store for the SelectionColor property.
Declaration
public static readonly BindableProperty SelectionColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TextComponentProperty
Backing store for the TextComponent property.
Declaration
public static readonly BindableProperty TextComponentProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TextProperty
Backing store for the Text property.
Declaration
public static readonly BindableProperty TextProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceCaretBlinkRate
A property that represents UnityEngine.UI.InputField.caretBlinkRate.
Declaration
public float CaretBlinkRate { get; set; }
Property Value
Type | Description |
---|---|
Single |
CaretColor
A property that represents UnityEngine.UI.InputField.caretColor.
Declaration
public UnityEngine.Color CaretColor { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Color |
CaretWidth
A property that represents UnityEngine.UI.InputField.caretWidth.
Declaration
public int CaretWidth { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
CharacterLimit
A property that represents UnityEngine.UI.InputField.characterLimit.
Declaration
public int CharacterLimit { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
CharacterValidation
A property that represents UnityEngine.UI.InputField.characterValidation.
Declaration
public UnityEngine.UI.InputField.CharacterValidation CharacterValidation { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UI.InputField.CharacterValidation |
ContentType
A property that represents UnityEngine.UI.InputField.contentType.
Declaration
public UnityEngine.UI.InputField.ContentType ContentType { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UI.InputField.ContentType |
CustomCaretColor
A property that represents UnityEngine.UI.InputField.customCaretColor.
Declaration
public bool CustomCaretColor { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
HideMobileInput
A property that represents UnityEngine.UI.InputField.shouldHideMobileInput.
Declaration
public bool HideMobileInput { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
InputType
A property that represents UnityEngine.UI.InputField.inputType.
Declaration
public UnityEngine.UI.InputField.InputType InputType { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UI.InputField.InputType |
KeyboardType
A property that represents UnityEngine.UI.InputField.keyboardType.
Declaration
public UnityEngine.TouchScreenKeyboardType KeyboardType { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.TouchScreenKeyboardType |
LineType
A property that represents UnityEngine.UI.InputField.lineType.
Declaration
public UnityEngine.UI.InputField.LineType LineType { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UI.InputField.LineType |
Placeholder
A property that represents UnityEngine.UI.InputField.placeholder.
Declaration
public UnityEngine.UI.Graphic Placeholder { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UI.Graphic |
See Also
ReadOnly
A property that represents UnityEngine.UI.InputField.readOnly.
Declaration
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SelectionColor
A property that represents UnityEngine.UI.InputField.selectionColor.
Declaration
public UnityEngine.Color SelectionColor { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Color |
Text
A property that represents UnityEngine.UI.InputField.text.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
String |
TextComponent
A property that represents UnityEngine.UI.InputField.textComponent.
Declaration
public UnityEngine.UI.Text TextComponent { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UI.Text |
See Also
Methods
| Improve this Doc View SourceAwakeInMainThread()
Declaration
protected override void AwakeInMainThread()
Events
| Improve this Doc View SourceOnEndEdit
An event that represents UnityEngine.UI.InputField.onEndEdit.
Declaration
public event UnityEngine.Events.UnityAction<string> OnEndEdit
Event Type
Type | Description |
---|---|
UnityEngine.Events.UnityAction<String> |