Front: Smobiler is a development platform that uses. NET language to develop apps in the VS environment, perhaps more convenient than Xamarin
Style one by one, target style
We want to achieve the effect in the following actions:
1. Drag a Poplist control to the form interface from "Smobiler components" on the toolbar
2. Modify the properties of the Poplist control A.groups property
The Poplist control display consists of two modes: expansion mode and filter classification mode, and only one of the two modes can be selected
Expand mode (this style chooses expand mode)
Open the Collection Editor and click "Add", 1
These include Indexerkey (category filter type), Text (menu group text), and value (internal values, not displayed on the interface), 2
Add data in items, 3
Poplist control's phone display effect 4
|
|
|
|
| Figure 1 |
Figure 2 |
Figure 3 |
Figure 4 |
Filter classification Mode
The settings for Indexerkey (category filter type), Text (menu group text), and value (internal values, not displayed on the interface) are shown in Figure 5
Add data in items, 6
Poplist control's phone display effect 7
|
|
|
| Figure 5 |
Figure 6 |
Figure 7 |
B.multiselect Property
The default setting does not allow multiple selections
C.selections Property
Set default options that need to be implemented in your code
VB: private Sub button1_click (sender as objectas EventArgs) handles Button1.Click meif label8.text.trim (). Length <= 0 Then memeend If end Sub
C #: button1_click (}
d.selected Events
Events after Content selection is complete
Event code:
VB: poplist1_selected (sender asObject asEventArgs)HandlesMeEnd Sub
C #: poplist1_selected (this}
3.Smobiler Form Design Interface Display effect
Second, the mobile phone effect display
. NET Language app development platform--smobiler learning log: How Poplist controls are opened correctly and how to quickly implement them