. Net language APP development platform-Smobiler Learning Log: the correct way to open the Poplist control and how to quickly implement it, smobilerpoplist
Smobiler is a development platform that uses the. Net language to develop apps in the VS environment. It may be more convenient than Xamarin.
Style 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.
The PopList control displays data in two modes: expand mode and filter type mode. You can select either of the two modes.
Show mode (Select Show mode for this style)
Open the Set editor, and click "add", 1
Including indexerKey (Category filtering type), Text (menu group Text), and Value (internal Value, not displayed on the Interface), 2
Add data in Items, 3
Mobile phone display result 4 of the PopList Control
|
|
|
|
Figure 1 |
Figure 2 |
Figure 3 |
Figure 4 |
Filter classification Mode
The indexerKey (Category filtering type), Text (menu group Text), and Value (internal Value, not displayed on the Interface) settings are shown in figure 5.
Add data in Items, 6
Mobile phone display result 7 of the PopList Control
|
|
|
Figure 5 |
Figure 6 |
Figure 7 |
B. MultiSelect attributes
Multiple selections are not allowed by default.
C. 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]); } }
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