. Net language APP development platform-Smobiler Learning Log: How to Implement Form Design on mobile phones, too mobiler

Source: Internet
Author: User

. Net language APP development platform-Smobiler Learning Log: How to Implement Form Design on mobile phones, too mobiler
Smobiler 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 TableView control from the "scycler Components" on the toolbar to the form interface.

2. Modify the property a. load Event code of the GridView control.
VB:    Private Sub TestTableView_Load(sender As Object, e As EventArgs)Handles MyBase.Load        Dim matTable As New DataTable        matTable.Columns.Add("MAT_DESC1", GetType(String))        matTable.Columns.Add("MAT_DESC2", GetType(String))        matTable.Columns.Add("MAT_DESC3", GetType(String))        matTable.Columns.Add("MAT_DESC4", GetType(String))        matTable.Rows.Add()        matTable.Rows(0)("MAT_DESC1") = "201503"        matTable.Rows(0)("MAT_DESC2") = "mz"        matTable.Rows(0)("MAT_DESC3") = "0"        matTable.Rows(0)("MAT_DESC4") = "17"        matTable.Rows.Add()        matTable.Rows(1)("MAT_DESC1") = "201504"        matTable.Rows(1)("MAT_DESC2") = "mz"        matTable.Rows(1)("MAT_DESC3") = "0"        matTable.Rows(1)("MAT_DESC4") = "17"        matTable.Rows.Add()        matTable.Rows(2)("MAT_DESC1") = "201505"        matTable.Rows(2)("MAT_DESC2") = "mz"        matTable.Rows(2)("MAT_DESC3") = "0"        matTable.Rows(2)("MAT_DESC4") = "17"        matTable.Rows.Add()        matTable.Rows(3)("MAT_DESC1") = "201506"        matTable.Rows(3)("MAT_DESC2") = "mz"        matTable.Rows(3)("MAT_DESC3") = "0"        matTable.Rows(3)("MAT_DESC4") = "17"                Me.tableView1..DataSource = matTable        Me.tableview1.DataBind()            End Sub
C#:    private void Testtableview_Load(object sender, EventArgs e)    {        DataTable matTable = new DataTable();        matTable.Columns.Add("MAT_DESC1", typeof(string));        matTable.Columns.Add("MAT_DESC2", typeof(string));        matTable.Columns.Add("MAT_DESC3", typeof(string));        matTable.Columns.Add("MAT_DESC4", typeof(string));        matTable.Rows.Add();        matTable.Rows[0]["MAT_DESC1"] = "201503";        matTable.Rows[0]["MAT_DESC2"] = "mz";        matTable.Rows[0]["MAT_DESC3"] = "0";        matTable.Rows[0]["MAT_DESC4"] = "17";        matTable.Rows.Add();        matTable.Rows[1]["MAT_DESC1"] = "201504";        matTable.Rows[1]["MAT_DESC2"] = "mz";        matTable.Rows[1]["MAT_DESC3"] = "0";        matTable.Rows[1]["MAT_DESC4"] = "17";        matTable.Rows.Add();        matTable.Rows[2]["MAT_DESC1"] = "201505";        matTable.Rows[2]["MAT_DESC2"] = "mz";        matTable.Rows[2]["MAT_DESC3"] = "0";        matTable.Rows[2]["MAT_DESC4"] = "17";        matTable.Rows.Add();        matTable.Rows[3]["MAT_DESC1"] = "201506";        matTable.Rows[3]["MAT_DESC2"] = "mz";        matTable.Rows[3]["MAT_DESC3"] = "0";        matTable.Rows[3]["MAT_DESC4"] = "17";        this.tableview1.DataSource = matTable;        this.tableview1.DataBind();    }
B. ColumnHeaderStyle attributes

The attributes include the Height attribute (Column Title Height), FontSize attribute (Column Title text size), BackColor attribute (Column Title background color), and ForeColor attribute (Column Title text color;

Set the Height attribute to "10", 2;

Set the FontSize attribute to "5", 3;

Set the BackColor attribute to "White", 4;

Set the ForeColor attribute to "Black", 5;

Figure 1 Figure 2 Figure 3 Figure 4
Figure 5
C. Columns attributes

Open the Set Editor, click the triangle button next to the "add" button, and select the expected column type, including TableViewLabelColumn, TableViewButtonColumn, TableViewTextBoxColumn, TableViewCheckBoxColumn, and TableViewImageColumn, 6. Figure 7;

D. GridLinesColor attribute

Set the TableView Table Line color to "Black", 8;

E. Location attribute

Display the control in the appropriate position (0,122), 9;

F. RowHeight attribute

Set the Row Height of the table to 15, 10;

G. Size attribute

Set the width and height of the control to (120, 77) and 11;

Figure 6 Figure 7 Figure 8 Figure 9
Figure 10 Figure 11
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.