. Net language APP development platform-Smobiler Learning Log: application scenarios and code of the Poplist control in the APP, smobilerpoplist

Source: Internet
Author: User

. 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

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.