. Net language APP development platform-Smobiler Learning Log: application scenarios and code of the Poplist control in the APP, smobilerpoplist
First, scycler is a development platform that uses the. Net language to develop apps in the VS environment. It may be more convenient than Xamarin. 1. Target Style
The following operations are required to achieve the effect:
1. Drag a PopList control from "Smobiler Components" on the toolbar to the form interface.
2. Modify the attributes of the PopList control.
Open the Set editor, and click "add", 1
In Text and Value, enter the options to be displayed in the list, 2
Add data in Items, 3
|
|
|
Figure 1 |
Figure 2 |
Figure 3 |
B. Selections attributes
Set the default option, which must be implemented in the code
VB: Private Sub Button1_Click(senderAs Object, e As EventArgs)Handles Button1.Click Me.PopList1.Show() If Label8.Text.Trim().Length <= 0 Then Me.PopList1.SetSelections(Me.PopList1.Groups(0).Items(6)) End If End Sub
C#: private void Button1_Click(object sender, EventArgs e) { PopList1.Show(); If (Label8.Text.Trim().Length <= 0) { PopList1.SetSelections(PopList1.Groups[0].Items[0]); } }
C. MultiSelect attributes
Multiple selections are not allowed by default.
D. Selected event
Event After Content Selection is complete
Event code:
VB: Private Sub PopList1_Selected(senderAs Object, e As EventArgs)Handles PopList1.Selected Me.Label8.Text = PopList1.Selection.Text End Sub
C#: private void PopList1_Selected(object sender, EventArgs e) { this.Label8.Text = PopList1.Selection.Text; }
3. scycler Form Design Interface display Effect
Ii. Mobile phone effect display