It allows the user to enter a text. It's similar to the Textbox control in the web world.
You can specify the line numbers, TextAlignment, Placeholder, Text Mode and Text Color.
TextMode="GeneralText" TextAlignment="Justify"></TextInput>
TextAlignment = Alignment.Justify, Placeholder = "Text here"};
PseudoCssState is a boolean value that if it will be set to "disabled", it allows you to specify a visual style for it in CSS.
MarkUp:
Stylesheet has a boolean property named Ignored, which is false by default. When set to true it works the same as "display: none" in HTML. It means that the element will not only be invisible, but also it won't occupy space on the screen.
View has a boolean property named Enabled, which is true by default. When set to false the object will not respond to UI gesture events. But it will remain visible. Also, its PseudoCssState will be set to "disabled" which allows you to specify a visual style for it in CSS.
MarkUp:
<TextInput Style.Height="20" Text="SearchInput 2" Enabled="false" />
<TextInput Style.Height="20" Text="SearchInput 3" />
<TextInput Style.Height="20" Text="SearchInput 4" Ignored="true"/>
<TextInput Style.Height="20" Text="SearchInput 5" />
The placeholder text shown when Text is null or empty. The default value is null.
If instead of "Go" you want the submit button to have a different text or icon, you can set the KeyboardActionType property to any of the following values:
The Lines proeprty determines how many lines does InputText component have.
Zebble components have a special effect which is named BoxShadow. As you can see in next image, it has start X and Y position for effecting and the amount of radious.
MarkUp:
You can see some information about Margin & Padding in Zebble here: http://zebble.net/docs/margin-padding
The location of an object can be determined by Style.X and Style.Y.
MarkUp:
Gets or sets the horizontal alignment of the text displayed in the object.
MarkUp:
Sample 1:
C#:
Sample 2:
C#:
Sample 3:
Sample 4:
Sample 5:
Sample 6:
Sample 7:
Sample 8:
Sample 9:
TextColor sets the color of the Text whick shown in the object.
MarkUp:
C#:
This property determine the output format of text:
MarkUp:
Sample 1:
Sample 2:
Sample 3:
Sample 4:
You can set the output format of text. By default, text mode is Auto, which allows Zebble to guess the correct TextMode depending on the Id of the control.
sample 1:
C#:
Sample 2:
C#:
Sample 3:
C#:
Sample 4:
C#:
This control also has various event handling methods including: FocusChanged, TextCompleted, Clear, TextChanged, FontChanged etc. Any event handler usage is similar to each other, you just have to specify the method you want to handle events in it. For example: