预览
代码
手机端效果
web端效果
demoToolBar.cs
demoToolBar.Designer.cs
web:demoToolBar.cs
web:demoToolBar.Designer.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Smobiler.Core;
using Smobiler.Core.Controls;
namespace Smobiler.Tutorials.Controls
{
partial class demoToolBar : Smobiler.Core.Controls.MobileForm
{
public demoToolBar()
: base()
{
//This call is required by the SmobilerForm.
InitializeComponent();
}
private void title1_ImagePress(object sender, EventArgs e)
{
this.Close();
}
private void toolBar5_ToolbarItemClick(object sender, ToolbarClickEventArgs e)
{
Toast(e.Name);
}
}
}
using System;
using Smobiler.Core;
namespace Smobiler.Tutorials.Controls
{
partial class demoToolBar : Smobiler.Core.Controls.MobileForm
{
#region "SmobilerForm generated code "
//SmobilerForm overrides dispose to clean up the component list.
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
//NOTE: The following procedure is required by the SmobilerForm
//It can be modified using the SmobilerForm.
//Do not modify it using the code editor.
[System.Diagnostics.DebuggerStepThrough()]
private void InitializeComponent()
{
Smobiler.Core.Controls.ToolBarItem toolBarItem1 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem2 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem3 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem4 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem5 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem6 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem7 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem8 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem9 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem10 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem11 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem12 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem13 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem14 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem15 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem16 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem17 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem18 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem19 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem20 = new Smobiler.Core.Controls.ToolBarItem();
this.title1 = new Smobiler.Core.Controls.Title();
this.panel10 = new Smobiler.Core.Controls.Panel();
this.panel1 = new Smobiler.Core.Controls.Panel();
this.labContent = new Smobiler.Core.Controls.Label();
this.labTitle = new Smobiler.Core.Controls.Label();
this.toolBar1 = new Smobiler.Core.Controls.ToolBar();
this.panel2 = new Smobiler.Core.Controls.Panel();
this.label5 = new Smobiler.Core.Controls.Label();
this.toolBar2 = new Smobiler.Core.Controls.ToolBar();
this.panel3 = new Smobiler.Core.Controls.Panel();
this.label6 = new Smobiler.Core.Controls.Label();
this.toolBar3 = new Smobiler.Core.Controls.ToolBar();
this.panel4 = new Smobiler.Core.Controls.Panel();
this.label1 = new Smobiler.Core.Controls.Label();
this.toolBar4 = new Smobiler.Core.Controls.ToolBar();
this.panel5 = new Smobiler.Core.Controls.Panel();
this.label2 = new Smobiler.Core.Controls.Label();
this.toolBar5 = new Smobiler.Core.Controls.ToolBar();
//
// title1
//
this.title1.ImageType = Smobiler.Core.Controls.ImageEx.ImageStyle.FontIcon;
this.title1.Name = "title1";
this.title1.ResourceID = "angle-left";
this.title1.Size = new System.Drawing.Size(300, 30);
this.title1.Text = "ToolBar";
this.title1.ImagePress += new System.EventHandler(this.title1_ImagePress);
//
// panel10
//
this.panel10.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.panel1,
this.panel2,
this.panel3,
this.panel4,
this.panel5});
this.panel10.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel10.Location = new System.Drawing.Point(0, 30);
this.panel10.Name = "panel10";
this.panel10.Scrollable = true;
this.panel10.Size = new System.Drawing.Size(300, 970);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.White;
this.panel1.Border = new Smobiler.Core.Controls.Border(1F);
this.panel1.BorderColor = System.Drawing.Color.Silver;
this.panel1.BorderRadius = 5;
this.panel1.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.labContent,
this.labTitle,
this.toolBar1});
this.panel1.Location = new System.Drawing.Point(5, 9);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(290, 224);
//
// labContent
//
this.labContent.BackColor = System.Drawing.Color.WhiteSmoke;
this.labContent.FontSize = 14F;
this.labContent.Location = new System.Drawing.Point(0, 26);
this.labContent.Name = "labContent";
this.labContent.Padding = new Smobiler.Core.Controls.Padding(5F);
this.labContent.Size = new System.Drawing.Size(290, 148);
this.labContent.Text = "Items属性设置工具栏菜单项:\n其中IconColor设置图标颜色\nIconID设置按钮图标名称\nImageExBorderRadius设置图像资源圆角\nIma" +
"geType设置图像类型(重要)\nMessageText设置消息数据显示的文本\nName设置工具条名称\nSelectIconColor设置选中图标颜色\nSele" +
"ctIconID设置选中状态图标名称\nText设置显示的文本\n";
//
// labTitle
//
this.labTitle.BackColor = System.Drawing.Color.WhiteSmoke;
this.labTitle.Border = new Smobiler.Core.Controls.Border(0F, 0F, 0F, 1F);
this.labTitle.BorderColor = System.Drawing.Color.DarkSeaGreen;
this.labTitle.FontSize = 16F;
this.labTitle.Name = "labTitle";
this.labTitle.Padding = new Smobiler.Core.Controls.Padding(5F);
this.labTitle.Size = new System.Drawing.Size(290, 25);
this.labTitle.Text = "ToolBar控件";
//
// toolBar1
//
toolBarItem1.IconID = "方案.png";
toolBarItem1.SelectIconID = "方案r.png";
toolBarItem1.Text = "方案";
toolBarItem2.IconID = "咨询.png";
toolBarItem2.SelectIconID = "咨询r.png";
toolBarItem2.Text = "咨询";
toolBarItem3.IconID = "搜索.png";
toolBarItem3.SelectIconID = "搜索r.png";
toolBarItem3.Text = "搜索";
toolBarItem4.IconID = "设计师.png";
toolBarItem4.SelectIconID = "设计师r.png";
toolBarItem4.Text = "设计师";
this.toolBar1.Items.AddRange(new Smobiler.Core.Controls.ToolBarItem[] {
toolBarItem1,
toolBarItem2,
toolBarItem3,
toolBarItem4});
this.toolBar1.Location = new System.Drawing.Point(73, 101);
this.toolBar1.Name = "toolBar1";
this.toolBar1.Size = new System.Drawing.Size(100, 50);
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Border = new Smobiler.Core.Controls.Border(1F);
this.panel2.BorderColor = System.Drawing.Color.Silver;
this.panel2.BorderRadius = 5;
this.panel2.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.label5,
this.toolBar2});
this.panel2.Location = new System.Drawing.Point(5, 245);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(290, 100);
//
// label5
//
this.label5.BackColor = System.Drawing.Color.WhiteSmoke;
this.label5.FontSize = 14F;
this.label5.Name = "label5";
this.label5.Padding = new Smobiler.Core.Controls.Padding(5F);
this.label5.Size = new System.Drawing.Size(290, 50);
this.label5.Text = "FontSize、ForeColor、SelectBackColor、SelectForeColor设置工具栏字体与颜色的不同样式";
//
// toolBar2
//
this.toolBar2.FontSize = 16F;
this.toolBar2.ForeColor = System.Drawing.Color.Silver;
toolBarItem5.IconID = "方案.png";
toolBarItem5.SelectIconID = "方案r.png";
toolBarItem5.Text = "方案";
toolBarItem6.IconID = "咨询.png";
toolBarItem6.SelectIconID = "咨询r.png";
toolBarItem6.Text = "咨询";
toolBarItem7.IconID = "搜索.png";
toolBarItem7.SelectIconID = "搜索r.png";
toolBarItem7.Text = "搜索";
toolBarItem8.IconID = "设计师.png";
toolBarItem8.SelectIconID = "设计师r.png";
toolBarItem8.Text = "设计师";
this.toolBar2.Items.AddRange(new Smobiler.Core.Controls.ToolBarItem[] {
toolBarItem5,
toolBarItem6,
toolBarItem7,
toolBarItem8});
this.toolBar2.Location = new System.Drawing.Point(73, 101);
this.toolBar2.Name = "toolBar2";
this.toolBar2.SelectBackColor = System.Drawing.Color.MistyRose;
this.toolBar2.SelectForeColor = System.Drawing.Color.DimGray;
this.toolBar2.Size = new System.Drawing.Size(100, 50);
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.White;
this.panel3.Border = new Smobiler.Core.Controls.Border(1F);
this.panel3.BorderColor = System.Drawing.Color.Silver;
this.panel3.BorderRadius = 5;
this.panel3.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.label6,
this.toolBar3});
this.panel3.Location = new System.Drawing.Point(5, 357);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(290, 100);
//
// label6
//
this.label6.BackColor = System.Drawing.Color.WhiteSmoke;
this.label6.FontSize = 15F;
this.label6.Name = "label6";
this.label6.Padding = new Smobiler.Core.Controls.Padding(5F);
this.label6.Size = new System.Drawing.Size(290, 50);
this.label6.Text = "ItemCount、ItemWidth、SelectedIndex设置工具栏的不同样式";
//
// toolBar3
//
this.toolBar3.FontSize = 16F;
this.toolBar3.ForeColor = System.Drawing.Color.Silver;
this.toolBar3.ItemCount = 2;
toolBarItem9.IconID = "方案.png";
toolBarItem9.SelectIconID = "方案r.png";
toolBarItem9.Text = "方案";
toolBarItem10.IconID = "咨询.png";
toolBarItem10.SelectIconID = "咨询r.png";
toolBarItem10.Text = "咨询";
toolBarItem11.IconID = "搜索.png";
toolBarItem11.SelectIconID = "搜索r.png";
toolBarItem11.Text = "搜索";
toolBarItem12.IconID = "设计师.png";
toolBarItem12.SelectIconID = "设计师r.png";
toolBarItem12.Text = "设计师";
this.toolBar3.Items.AddRange(new Smobiler.Core.Controls.ToolBarItem[] {
toolBarItem9,
toolBarItem10,
toolBarItem11,
toolBarItem12});
this.toolBar3.ItemWidth = 35;
this.toolBar3.Location = new System.Drawing.Point(73, 101);
this.toolBar3.Name = "toolBar3";
this.toolBar3.SelectBackColor = System.Drawing.Color.MistyRose;
this.toolBar3.SelectedIndex = 1;
this.toolBar3.SelectForeColor = System.Drawing.Color.DimGray;
this.toolBar3.Size = new System.Drawing.Size(100, 50);
//
// panel4
//
this.panel4.BackColor = System.Drawing.Color.White;
this.panel4.Border = new Smobiler.Core.Controls.Border(1F);
this.panel4.BorderColor = System.Drawing.Color.Silver;
this.panel4.BorderRadius = 5;
this.panel4.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.label1,
this.toolBar4});
this.panel4.Location = new System.Drawing.Point(5, 469);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(290, 100);
//
// label1
//
this.label1.BackColor = System.Drawing.Color.WhiteSmoke;
this.label1.FontSize = 14F;
this.label1.Name = "label1";
this.label1.Padding = new Smobiler.Core.Controls.Padding(5F);
this.label1.Size = new System.Drawing.Size(290, 50);
this.label1.Text = "MessageBackColor、MessageFontSize、MessageForeColor、MessageWidth设置消息框样式";
//
// toolBar4
//
toolBarItem13.IconID = "方案.png";
toolBarItem13.MessageText = "1";
toolBarItem13.SelectIconID = "方案r.png";
toolBarItem13.Text = "方案";
toolBarItem14.IconID = "咨询.png";
toolBarItem14.MessageText = "2";
toolBarItem14.SelectIconID = "咨询r.png";
toolBarItem14.Text = "咨询";
toolBarItem15.IconID = "搜索.png";
toolBarItem15.MessageText = "3";
toolBarItem15.SelectIconID = "搜索r.png";
toolBarItem15.Text = "搜索";
toolBarItem16.IconID = "设计师.png";
toolBarItem16.MessageText = "4";
toolBarItem16.SelectIconID = "设计师r.png";
toolBarItem16.Text = "设计师";
this.toolBar4.Items.AddRange(new Smobiler.Core.Controls.ToolBarItem[] {
toolBarItem13,
toolBarItem14,
toolBarItem15,
toolBarItem16});
this.toolBar4.Location = new System.Drawing.Point(73, 101);
this.toolBar4.MessageForeColor = System.Drawing.Color.White;
this.toolBar4.Name = "toolBar4";
this.toolBar4.Size = new System.Drawing.Size(100, 50);
//
// panel5
//
this.panel5.BackColor = System.Drawing.Color.White;
this.panel5.Border = new Smobiler.Core.Controls.Border(1F);
this.panel5.BorderColor = System.Drawing.Color.Silver;
this.panel5.BorderRadius = 5;
this.panel5.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.label2,
this.toolBar5});
this.panel5.Location = new System.Drawing.Point(5, 579);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(290, 100);
//
// label2
//
this.label2.BackColor = System.Drawing.Color.WhiteSmoke;
this.label2.FontSize = 15F;
this.label2.Name = "label2";
this.label2.Padding = new Smobiler.Core.Controls.Padding(5F);
this.label2.Size = new System.Drawing.Size(290, 50);
this.label2.Text = "ToolbarItemClick在工具栏点击时发生";
//
// toolBar5
//
toolBarItem17.IconID = "方案.png";
toolBarItem17.MessageText = "1";
toolBarItem17.Name = "方案";
toolBarItem17.SelectIconID = "方案r.png";
toolBarItem17.Text = "方案";
toolBarItem18.IconID = "咨询.png";
toolBarItem18.MessageText = "2";
toolBarItem18.Name = "咨询";
toolBarItem18.SelectIconID = "咨询r.png";
toolBarItem18.Text = "咨询";
toolBarItem19.IconID = "搜索.png";
toolBarItem19.Name = "搜索";
toolBarItem19.SelectIconID = "搜索r.png";
toolBarItem19.Text = "搜索";
toolBarItem20.IconID = "设计师.png";
toolBarItem20.Name = "设计师";
toolBarItem20.SelectIconID = "设计师r.png";
toolBarItem20.Text = "设计师";
this.toolBar5.Items.AddRange(new Smobiler.Core.Controls.ToolBarItem[] {
toolBarItem17,
toolBarItem18,
toolBarItem19,
toolBarItem20});
this.toolBar5.Location = new System.Drawing.Point(73, 101);
this.toolBar5.MessageForeColor = System.Drawing.Color.White;
this.toolBar5.Name = "toolBar5";
this.toolBar5.Size = new System.Drawing.Size(100, 50);
this.toolBar5.ToolbarItemClick += new Smobiler.Core.Controls.ToolbarItemClickEventHandler(this.toolBar5_ToolbarItemClick);
//
// demoToolBar
//
this.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.title1,
this.panel10});
this.Size = new System.Drawing.Size(300, 1000);
this.Name = "demoToolBar";
}
#endregion
private Core.Controls.Title title1;
private Core.Controls.Panel panel10;
private Core.Controls.Panel panel1;
private Core.Controls.Label labContent;
private Core.Controls.Label labTitle;
private Core.Controls.Panel panel2;
private Core.Controls.ToolBar toolBar1;
private Core.Controls.Label label5;
private Core.Controls.ToolBar toolBar2;
private Core.Controls.Panel panel3;
private Core.Controls.Label label6;
private Core.Controls.ToolBar toolBar3;
private Core.Controls.Panel panel4;
private Core.Controls.Label label1;
private Core.Controls.ToolBar toolBar4;
private Core.Controls.Panel panel5;
private Core.Controls.Label label2;
private Core.Controls.ToolBar toolBar5;
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Smobiler.Core;
using Smobiler.Core.Controls;
namespace SmobilerTutorialsWeb.Components
{
partial class demoToolBar : Smobiler.Core.Controls.MobileForm
{
public demoToolBar() : base()
{
//This call is required by the SmobilerForm.
InitializeComponent();
}
private void title1_ImagePress(object sender, EventArgs e)
{
this.Close();
}
private void demoToolBar_Load(object sender, EventArgs e)
{
}
private void toolBar5_ToolbarItemClick(object sender, ToolbarClickEventArgs e)
{
Toast("当前点击" + e.Name);
}
}
}
using System;
using Smobiler.Core;
namespace SmobilerTutorialsWeb.Components
{
partial class demoToolBar : Smobiler.Core.Controls.MobileForm
{
#region "SmobilerForm generated code "
//SmobilerForm overrides dispose to clean up the component list.
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
//NOTE: The following procedure is required by the SmobilerForm
//It can be modified using the SmobilerForm.
//Do not modify it using the code editor.
[System.Diagnostics.DebuggerStepThrough()]
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(demoToolBar));
Smobiler.Core.Controls.ToolBarItem toolBarItem1 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem2 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem3 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem4 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem5 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem6 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem7 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem8 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem9 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem10 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem11 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem12 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem13 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem14 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem15 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem16 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem17 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem18 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem19 = new Smobiler.Core.Controls.ToolBarItem();
Smobiler.Core.Controls.ToolBarItem toolBarItem20 = new Smobiler.Core.Controls.ToolBarItem();
this.title1 = new Smobiler.Core.Controls.Title();
this.panel10 = new Smobiler.Core.Controls.Panel();
this.panel1 = new Smobiler.Core.Controls.Panel();
this.labContent = new Smobiler.Core.Controls.Label();
this.toolBar1 = new Smobiler.Core.Controls.ToolBar();
this.panel2 = new Smobiler.Core.Controls.Panel();
this.label5 = new Smobiler.Core.Controls.Label();
this.toolBar2 = new Smobiler.Core.Controls.ToolBar();
this.panel3 = new Smobiler.Core.Controls.Panel();
this.label6 = new Smobiler.Core.Controls.Label();
this.toolBar3 = new Smobiler.Core.Controls.ToolBar();
this.panel4 = new Smobiler.Core.Controls.Panel();
this.label1 = new Smobiler.Core.Controls.Label();
this.toolBar4 = new Smobiler.Core.Controls.ToolBar();
this.panel5 = new Smobiler.Core.Controls.Panel();
this.label2 = new Smobiler.Core.Controls.Label();
this.toolBar5 = new Smobiler.Core.Controls.ToolBar();
this.labTitle = new Smobiler.Core.Controls.Label();
this.label3 = new Smobiler.Core.Controls.Label();
//
// title1
//
this.title1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246)))));
this.title1.ImageType = Smobiler.Core.Controls.ImageEx.ImageStyle.FontIcon;
this.title1.Name = "title1";
this.title1.ResourceID = "angle-left";
this.title1.Size = new System.Drawing.Size(0, 30);
this.title1.Text = "ToolBar";
this.title1.ImagePress += new System.EventHandler(this.title1_ImagePress);
//
// panel10
//
this.panel10.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.panel1,
this.panel2,
this.panel3,
this.panel4,
this.panel5,
this.labTitle,
this.label3});
this.panel10.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel10.Flex = 1;
this.panel10.Name = "panel10";
this.panel10.Scrollable = true;
this.panel10.Size = new System.Drawing.Size(0, 0);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.White;
this.panel1.Border = new Smobiler.Core.Controls.Border(1F);
this.panel1.BorderColor = System.Drawing.Color.Silver;
this.panel1.BorderRadius = 5;
this.panel1.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.labContent,
this.toolBar1});
this.panel1.Location = new System.Drawing.Point(123, 57);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(427, 224);
//
// labContent
//
this.labContent.BackColor = System.Drawing.Color.White;
this.labContent.Name = "labContent";
this.labContent.Padding = new Smobiler.Core.Controls.Padding(5F);
this.labContent.Size = new System.Drawing.Size(427, 147);
this.labContent.Text = resources.GetString("labContent.Text");
//
// toolBar1
//
toolBarItem1.IconID = "方案.png";
toolBarItem1.SelectIconID = "方案r.png";
toolBarItem1.Text = "方案";
toolBarItem2.IconID = "咨询.png";
toolBarItem2.SelectIconID = "咨询r.png";
toolBarItem2.Text = "咨询";
toolBarItem3.IconID = "搜索.png";
toolBarItem3.SelectIconID = "搜索r.png";
toolBarItem3.Text = "搜索";
toolBarItem4.IconID = "设计师.png";
toolBarItem4.SelectIconID = "设计师r.png";
toolBarItem4.Text = "设计师";
this.toolBar1.Items.AddRange(new Smobiler.Core.Controls.ToolBarItem[] {
toolBarItem1,
toolBarItem2,
toolBarItem3,
toolBarItem4});
this.toolBar1.Location = new System.Drawing.Point(73, 101);
this.toolBar1.MessageBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(67)))), ((int)(((byte)(81)))));
this.toolBar1.MessageForeColor = System.Drawing.Color.White;
this.toolBar1.Name = "toolBar1";
this.toolBar1.SelectBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
this.toolBar1.SelectForeColor = System.Drawing.Color.White;
this.toolBar1.Size = new System.Drawing.Size(100, 50);
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Border = new Smobiler.Core.Controls.Border(1F);
this.panel2.BorderColor = System.Drawing.Color.Silver;
this.panel2.BorderRadius = 5;
this.panel2.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.label5,
this.toolBar2});
this.panel2.Location = new System.Drawing.Point(673, 56);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(427, 225);
//
// label5
//
this.label5.BackColor = System.Drawing.Color.White;
this.label5.Name = "label5";
this.label5.Padding = new Smobiler.Core.Controls.Padding(5F);
this.label5.Size = new System.Drawing.Size(427, 128);
this.label5.Text = "FontSize、ForeColor、SelectBackColor、SelectForeColor设置工具栏字体与颜色的不同样式";
//
// toolBar2
//
this.toolBar2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(176)))), ((int)(((byte)(249)))));
toolBarItem5.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(176)))), ((int)(((byte)(249)))));
toolBarItem5.IconID = "bell-o";
toolBarItem5.ImageType = Smobiler.Core.Controls.ImageEx.ImageStyle.FontIcon;
toolBarItem5.SelectIconColor = System.Drawing.Color.White;
toolBarItem5.SelectIconID = "bell-o";
toolBarItem5.Text = "1";
toolBarItem6.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(176)))), ((int)(((byte)(249)))));
toolBarItem6.IconID = "bookmark-o";
toolBarItem6.ImageType = Smobiler.Core.Controls.ImageEx.ImageStyle.FontIcon;
toolBarItem6.SelectIconColor = System.Drawing.Color.White;
toolBarItem6.SelectIconID = "bookmark-o";
toolBarItem6.Text = "2";
toolBarItem7.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(176)))), ((int)(((byte)(249)))));
toolBarItem7.IconID = "envelope-o";
toolBarItem7.ImageType = Smobiler.Core.Controls.ImageEx.ImageStyle.FontIcon;
toolBarItem7.SelectIconColor = System.Drawing.Color.White;
toolBarItem7.SelectIconID = "envelope-o";
toolBarItem7.Text = "3";
toolBarItem8.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(176)))), ((int)(((byte)(249)))));
toolBarItem8.IconID = "cogs";
toolBarItem8.ImageType = Smobiler.Core.Controls.ImageEx.ImageStyle.FontIcon;
toolBarItem8.SelectIconColor = System.Drawing.Color.White;
toolBarItem8.SelectIconID = "cogs";
toolBarItem8.Text = "4";
this.toolBar2.Items.AddRange(new Smobiler.Core.Controls.ToolBarItem[] {
toolBarItem5,
toolBarItem6,
toolBarItem7,
toolBarItem8});
this.toolBar2.Location = new System.Drawing.Point(73, 101);
this.toolBar2.MessageBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(67)))), ((int)(((byte)(81)))));
this.toolBar2.MessageForeColor = System.Drawing.Color.White;
this.toolBar2.Name = "toolBar2";
this.toolBar2.SelectBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(176)))), ((int)(((byte)(249)))));
this.toolBar2.SelectedIndex = 1;
this.toolBar2.SelectForeColor = System.Drawing.Color.White;
this.toolBar2.Size = new System.Drawing.Size(100, 60);
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.White;
this.panel3.Border = new Smobiler.Core.Controls.Border(1F);
this.panel3.BorderColor = System.Drawing.Color.Silver;
this.panel3.BorderRadius = 5;
this.panel3.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.label6,
this.toolBar3});
this.panel3.Location = new System.Drawing.Point(123, 338);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(427, 156);
//
// label6
//
this.label6.BackColor = System.Drawing.Color.White;
this.label6.Name = "label6";
this.label6.Padding = new Smobiler.Core.Controls.Padding(5F);
this.label6.Size = new System.Drawing.Size(427, 50);
this.label6.Text = "ItemCount、ItemWidth、SelectedIndex设置工具栏的不同样式";
//
// toolBar3
//
this.toolBar3.FontSize = 16F;
this.toolBar3.ForeColor = System.Drawing.Color.Silver;
this.toolBar3.ItemCount = 2;
toolBarItem9.IconID = "方案.png";
toolBarItem9.SelectIconID = "方案r.png";
toolBarItem9.Text = "方案";
toolBarItem10.IconID = "咨询.png";
toolBarItem10.SelectIconID = "咨询r.png";
toolBarItem10.Text = "咨询";
toolBarItem11.IconID = "搜索.png";
toolBarItem11.SelectIconID = "搜索r.png";
toolBarItem11.Text = "搜索";
toolBarItem12.IconID = "设计师.png";
toolBarItem12.SelectIconID = "设计师r.png";
toolBarItem12.Text = "设计师";
this.toolBar3.Items.AddRange(new Smobiler.Core.Controls.ToolBarItem[] {
toolBarItem9,
toolBarItem10,
toolBarItem11,
toolBarItem12});
this.toolBar3.ItemWidth = 35;
this.toolBar3.Location = new System.Drawing.Point(73, 101);
this.toolBar3.MessageBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(67)))), ((int)(((byte)(81)))));
this.toolBar3.MessageForeColor = System.Drawing.Color.White;
this.toolBar3.Name = "toolBar3";
this.toolBar3.SelectBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
this.toolBar3.SelectedIndex = 1;
this.toolBar3.SelectForeColor = System.Drawing.Color.White;
this.toolBar3.Size = new System.Drawing.Size(100, 65);
//
// panel4
//
this.panel4.BackColor = System.Drawing.Color.White;
this.panel4.Border = new Smobiler.Core.Controls.Border(1F);
this.panel4.BorderColor = System.Drawing.Color.Silver;
this.panel4.BorderRadius = 5;
this.panel4.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.label1,
this.toolBar4});
this.panel4.Location = new System.Drawing.Point(673, 337);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(427, 157);
//
// label1
//
this.label1.BackColor = System.Drawing.Color.White;
this.label1.Name = "label1";
this.label1.Padding = new Smobiler.Core.Controls.Padding(5F);
this.label1.Size = new System.Drawing.Size(427, 50);
this.label1.Text = "MessageBackColor、MessageFontSize、MessageForeColor、MessageWidth设置消息框样式";
//
// toolBar4
//
toolBarItem13.IconID = "方案.png";
toolBarItem13.MessageText = "1";
toolBarItem13.SelectIconID = "方案r.png";
toolBarItem13.Text = "方案";
toolBarItem14.IconID = "咨询.png";
toolBarItem14.MessageText = "2";
toolBarItem14.SelectIconID = "咨询r.png";
toolBarItem14.Text = "咨询";
toolBarItem15.IconID = "搜索.png";
toolBarItem15.MessageText = "3";
toolBarItem15.SelectIconID = "搜索r.png";
toolBarItem15.Text = "搜索";
toolBarItem16.IconID = "设计师.png";
toolBarItem16.MessageText = "4";
toolBarItem16.SelectIconID = "设计师r.png";
toolBarItem16.Text = "设计师";
this.toolBar4.Items.AddRange(new Smobiler.Core.Controls.ToolBarItem[] {
toolBarItem13,
toolBarItem14,
toolBarItem15,
toolBarItem16});
this.toolBar4.Location = new System.Drawing.Point(73, 101);
this.toolBar4.MessageBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(67)))), ((int)(((byte)(81)))));
this.toolBar4.MessageForeColor = System.Drawing.Color.White;
this.toolBar4.Name = "toolBar4";
this.toolBar4.SelectBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
this.toolBar4.SelectForeColor = System.Drawing.Color.White;
this.toolBar4.Size = new System.Drawing.Size(100, 50);
//
// panel5
//
this.panel5.BackColor = System.Drawing.Color.White;
this.panel5.Border = new Smobiler.Core.Controls.Border(1F);
this.panel5.BorderColor = System.Drawing.Color.Silver;
this.panel5.BorderRadius = 5;
this.panel5.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.label2,
this.toolBar5});
this.panel5.Location = new System.Drawing.Point(123, 551);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(427, 140);
//
// label2
//
this.label2.BackColor = System.Drawing.Color.White;
this.label2.Name = "label2";
this.label2.Padding = new Smobiler.Core.Controls.Padding(5F);
this.label2.Size = new System.Drawing.Size(427, 50);
this.label2.Text = "ToolbarItemClick在工具栏点击时发生";
//
// toolBar5
//
toolBarItem17.IconID = "方案.png";
toolBarItem17.MessageText = "1";
toolBarItem17.Name = "方案";
toolBarItem17.SelectIconID = "方案r.png";
toolBarItem17.Text = "方案";
toolBarItem18.IconID = "咨询.png";
toolBarItem18.MessageText = "2";
toolBarItem18.Name = "咨询";
toolBarItem18.SelectIconID = "咨询r.png";
toolBarItem18.Text = "咨询";
toolBarItem19.IconID = "搜索.png";
toolBarItem19.Name = "搜索";
toolBarItem19.SelectIconID = "搜索r.png";
toolBarItem19.Text = "搜索";
toolBarItem20.IconID = "设计师.png";
toolBarItem20.Name = "设计师";
toolBarItem20.SelectIconID = "设计师r.png";
toolBarItem20.Text = "设计师";
this.toolBar5.Items.AddRange(new Smobiler.Core.Controls.ToolBarItem[] {
toolBarItem17,
toolBarItem18,
toolBarItem19,
toolBarItem20});
this.toolBar5.Location = new System.Drawing.Point(73, 101);
this.toolBar5.MessageBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(67)))), ((int)(((byte)(81)))));
this.toolBar5.MessageForeColor = System.Drawing.Color.White;
this.toolBar5.Name = "toolBar5";
this.toolBar5.SelectBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
this.toolBar5.Size = new System.Drawing.Size(100, 50);
this.toolBar5.ToolbarItemClick += new Smobiler.Core.Controls.ToolbarItemClickEventHandler(this.toolBar5_ToolbarItemClick);
//
// labTitle
//
this.labTitle.BackColor = System.Drawing.Color.White;
this.labTitle.Bold = true;
this.labTitle.Border = new Smobiler.Core.Controls.Border(0F, 0F, 0F, 1F);
this.labTitle.BorderColor = System.Drawing.Color.White;
this.labTitle.FontSize = 16F;
this.labTitle.Location = new System.Drawing.Point(123, 30);
this.labTitle.Name = "labTitle";
this.labTitle.Padding = new Smobiler.Core.Controls.Padding(5F);
this.labTitle.Size = new System.Drawing.Size(427, 26);
this.labTitle.Text = "ToolBar控件";
//
// label3
//
this.label3.BackColor = System.Drawing.Color.White;
this.label3.Bold = true;
this.label3.Border = new Smobiler.Core.Controls.Border(0F, 0F, 0F, 1F);
this.label3.BorderColor = System.Drawing.Color.White;
this.label3.FontSize = 16F;
this.label3.Location = new System.Drawing.Point(123, 311);
this.label3.Name = "label3";
this.label3.Padding = new Smobiler.Core.Controls.Padding(5F);
this.label3.Size = new System.Drawing.Size(427, 26);
this.label3.Text = "ToolBar控件";
//
// demoToolBar
//
this.BackColor = System.Drawing.Color.White;
this.Controls.AddRange(new Smobiler.Core.Controls.MobileControl[] {
this.title1,
this.panel10});
this.Layout = Smobiler.Core.Controls.LayoutPosition.Relative;
this.Size = new System.Drawing.Size(1200, 800);
this.Load += new System.EventHandler(this.demoToolBar_Load);
this.Name = "demoToolBar";
}
#endregion
private Smobiler.Core.Controls.Title title1;
private Smobiler.Core.Controls.Panel panel10;
private Smobiler.Core.Controls.Panel panel1;
private Smobiler.Core.Controls.Label labContent;
private Smobiler.Core.Controls.ToolBar toolBar1;
private Smobiler.Core.Controls.Panel panel2;
private Smobiler.Core.Controls.Label label5;
private Smobiler.Core.Controls.ToolBar toolBar2;
private Smobiler.Core.Controls.Panel panel3;
private Smobiler.Core.Controls.Label label6;
private Smobiler.Core.Controls.ToolBar toolBar3;
private Smobiler.Core.Controls.Panel panel4;
private Smobiler.Core.Controls.Label label1;
private Smobiler.Core.Controls.ToolBar toolBar4;
private Smobiler.Core.Controls.Panel panel5;
private Smobiler.Core.Controls.Label label2;
private Smobiler.Core.Controls.ToolBar toolBar5;
private Smobiler.Core.Controls.Label labTitle;
private Smobiler.Core.Controls.Label label3;
}
}