. Net language APP development platform-Smobiler Learning Log: the correct way to open the Poplist control and how to quickly implement it, smobilerpoplist

Source: Internet
Author: User

. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.