VisualStudio移動開發(C#、VB.NET)Smobiler開發平台——AlbumView相簿控制項的使用方式

來源:互聯網
上載者:User

標籤:介面   操作   row   大小   eof   介面   ble   nbsp   實現   

AlbumView控制項

一、          樣式一

 

我們要實現中的效果,需要如下的操作:

  1. 從工具列上的“Smobiler Components”拖動一個AlbumView控制項到表單介面上

 

  1. 修改AlbumView的屬性
    1. load事件代碼

C#:

private void TestAlbumView_Load(object sender, EventArgs e)

        {

            DataTable matTable = new DataTable();

            matTable.Columns.Add("MAT_DESC1", typeof(string));

 

            matTable.Rows.Add();

            matTable.Rows[0]["MAT_DESC1"] = "q1";

            matTable.Rows.Add();

            matTable.Rows[1]["MAT_DESC1"] = "q2";

            matTable.Rows.Add();

            matTable.Rows[2]["MAT_DESC1"] = "q3";

            matTable.Rows.Add();

            matTable.Rows[3]["MAT_DESC1"] = "q4";

            matTable.Rows.Add();

            matTable.Rows[4]["MAT_DESC1"] = "q5";

            matTable.Rows.Add();

            matTable.Rows[5]["MAT_DESC1"] = "q6";

            matTable.Rows.Add();

            matTable.Rows[6]["MAT_DESC1"] = "q7";

            matTable.Rows.Add();

            matTable.Rows[7]["MAT_DESC1"] = "q8";

            matTable.Rows.Add();

            matTable.Rows[8]["MAT_DESC1"] = "q9";

            matTable.Rows.Add();

            matTable.Rows[9]["MAT_DESC1"] = "q10";

            //將資料繫結到AlbumView中

            this.albumView1.DataSource = matTable;

            this.albumView1.DataBind();

        }

  1. ColumnCount屬性

擷取或設定AlbumView的列數,預設設定為“4”,1;

 

圖 1設定介面

  1. DispalyMember屬性

設定資料顯示欄位,將該屬性設定為“MAT_DESC1”, 2;

 

圖 2設定介面

  1. Location屬性

讓控制項顯示在合適的位置(0, 120), 3;

 

圖 3設定介面

  1. Mode屬性

擷取或設定擷取映像模式,預設設定為“File”, 表示直接從檔案中讀取映像, 4;

 

圖 4設定介面

若將該屬性設定為“Customize”,表示可以從自訂的介面中擷取映像的位元據。

  1. RowHeight屬性

擷取或設定控制項的行高,預設設定為“30”, 5;

 

圖 5設定介面

  1. Size屬性

讓AlbumView控制項大小為(120, 90), 6;

 

圖 6設定介面

二、          手機效果顯示

 

VisualStudio移動開發(C#、VB.NET)Smobiler開發平台——AlbumView相簿控制項的使用方式

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.