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相册控件的使用方式的更多相关文章

  1. VisualStudio移动开发(C#、VB.NET)Smobiler开发平台——VoiceRecorder控件的使用方式.Net移动开发

    一.          样式一 我们要实现上图中的效果,需要如下的操作: 从工具栏上的“Smobiler Components”拖动一个VoiceRecorder控件和一个ImageButton控件到 ...

  2. VisualStudio移动开发(C#、VB.NET)Smobiler开发平台——ImageTabBar控件的使用方式

    一.          样式一 我们要实现上图中的效果,需要如下的操作: 从工具栏上的“Smobiler Components”拖动一个ImageTabBar控件到窗体界面上 修改ImageTabBa ...

  3. VisualStudio移动开发(C#、VB.NET)Smobiler开发平台——GifView控件的使用方式

    一.          样式一 我们要实现上图中的效果,需要如下的操作: 从工具栏上的“Smobiler Components”拖动一个GifView控件到窗体界面上 修改GifView的属性 Aut ...

  4. VisualStudio移动开发(C#、VB.NET)Smobiler开发平台——BarcodeView控件的使用方式,.Net移动开发

    BarcodeView控件 一.          样式一 我们要实现上图中的效果,需要如下的操作: 从工具栏上的“Smobiler Components”拖动一个BarcodeView控件到窗体界面 ...

  5. VisualStudio移动开发(C#、VB.NET)Smobiler开发平台——SliderView控件的使用方式

    SliderView控件 一.          样式一 我们要实现上图中的效果,需要如下的操作: 从工具栏上的“Smobiler Components”拖动一个SliderView控件到窗体界面上 ...

  6. .Net语言 APP开发平台——Smobiler学习日志:Poplist控件的正确打开方式以及如何快速实现

    最前面的话:Smobiler是一个在VS环境中使用.Net语言来开发APP的开发平台,也许比Xamarin更方便 样式一 一.目标样式 我们要实现上图中的效果,需要如下的操作: 1.从工具栏上的&qu ...

  7. .Net语言 APP开发平台——Smobiler学习日志:Poplist控件在APP中的应用场景以及代码

    最前面的话:Smobiler是一个在VS环境中使用.Net语言来开发APP的开发平台,也许比Xamarin更方便 一.目标样式 我们要实现上图中的效果,需要如下的操作: 1.从工具栏上的”Smobil ...

  8. VS2017移动开发(C#、VB.NET)——Numeric控件的使用方式

    Visual Studio 2017移动开发 控件介绍和使用方式:Numeric控件 Smobiler开发平台,.NET移动开发 一.          样式一 我们要实现上图中的效果,需要如下的操作 ...

  9. Atitit.hybrid混合型应用 浏览器插件,控件的实现方式 浏览器运行本地程序的解决方案大的总结---提升用户体验and开发效率..

    Atitit.hybrid混合型应用 浏览器插件,控件的实现方式 浏览器运行本地程序的解决方案大的总结---提升用户体验and开发效率.. 1. hybrid App 1 1.1. Hybrid Ap ...

随机推荐

  1. Java 将容器 Map中的内容保存到数组

    import java.util.Map; import java.util.HashMap; import java.util.Map.Entry; public class mapToArr { ...

  2. 【转】 微软在.NET官网上线.NET 架构指南

    原文地址:http://www.cnblogs.com/shanyou/p/6676357.html. 微软在Visual Studio 2017 正式发布的时候也上线了一个参考应用https://g ...

  3. Eclipse自动补全调教

    方法来自http://www.cnblogs.com/sunjie21/archive/2012/06/28/2567463.html 调教后可以做到: 1. sout + Tab 输出System. ...

  4. SVM支持向量机 详解(含公式推导)

    关于SVM的内容,这三位老哥写的都挺好的,内容是互补的,结合他们三位的一起看,就可以依次推导出SVM得公式了. https://www.cnblogs.com/steven-yang/p/565836 ...

  5. High Availability手册(2): 架构

    最底层是通信层corosync/openais 负责cluster中node之间的通信 上一层是Resource Allocation Layer,包含下面的组件: CRM Cluster Resou ...

  6. 请求ajax失败的原因(进入到error)

    原因: dataType 定义类型和返回类型不一致,我定义的json格式数据. {data:[],num:0} 这种是不规则的字符串,不是严格的json格式 应该改成{"data" ...

  7. [Swift]LeetCode459. 重复的子字符串 | Repeated Substring Pattern

    Given a non-empty string check if it can be constructed by taking a substring of it and appending mu ...

  8. [Java]LeetCode690. 员工的重要性 | Employee Importance

    You are given a data structure of employee information, which includes the employee's unique id, his ...

  9. [Swift]LeetCode740. 删除与获得点数 | Delete and Earn

    Given an array nums of integers, you can perform operations on the array. In each operation, you pic ...

  10. 阿里云rds数据库迁移实战(多数据源)

    由于某几个业务表数据量太大,数据由业务写,数据部门读. 写压力不大,读却很容易导致长时间等待问题(读由单独系统进行读),导致连接被占用,从而容易并发稍稍增长导致全库卡死! 于是,就拆库呗. 业务系统拆 ...