- 3
- 0
- 约5.87千字
- 约 4页
- 2020-12-07 发布于天津
- 举报
Windows8 Metro 应用开发之 C#2 )-布局控件 Grid,Canvas,StackPanel 延续
Silverlight )
介绍:
在Metro中从Silverlight中保留下来了一些布局控件及一些新增的布局控件。
本节主要讲解从 Silverlight 中延续下来的布局控件 Grid、Canvas及StackPanel,如果你有Silvelright 或WPF基
础可以跳过本节。b5E2RGbCAP
Grid网格布局控件
定义由行和列组成的网格区域。
Grid.xaml
vUserControl
x:Class =BlankApplication.Grid 3 xmlns = /winfx/2006/
xaml/presentation 4 xmlns:x = /winfx/2006/xaml 5 xmlns:
local =using:BlankApplication 6 xmlns:d = /expression/blend/
2008 7 xmlns:mc = /markup-compatibility/2006 8 mc:
Ignorable =d 9 d:DesignHeight =300 10 d:DesignWidth =400 11
32*/ 22vRowDefinitionHeight =43*/23/ Grid.RowDefinitions2 Grid.ColumnDefinitions25!--
32*/ 22
vRowDefinition
Height =43*/
23
/ Grid.RowDefinitions
2
Grid.ColumnDefinitions
25
!--定义四列及每列宽度-- 2
vColumnDefinition
Width =58* / 27
vColumnDefinition
Width
12
v!--Grid 表格布局
13
Grid.RowDefinitions
:定义Grid中的行
14
Grid.ColumnDefinitions
:定义Grid的列
15
16
-- 17 vGrid
Horiz on talAlig nment
=Ce nter Height =210
VerticalAlignment
=Ce n
ter
Width =305 18
vGrid.RowDefinitions 19
!--定义三行及每行高度-
- 20
vRowDefinition
vRowDefinition
Height
Height =30*/ 21
ion Width =63*/ 30
v/ Grid.ColumnDefinitions
31
v!--Grid
第一列-- 3
2
v Rectangle
Fill =#FFF4F4F5/ 33
vRectangle Fill =#FF0B0BEE
Grid.R
ow=1
/ 34
vRectangle Fill =#FFEECF0B
Grid.Row =2
/ 35
v!--Gri
d 第二列-- 36
v Rectangle Fill =#FF34EE0B
Grid.Row =2
Grid.Column =1
/ 3
7
v Rectangle
Fill =#FFFF9A09 Grid.Row
=0 Grid.Colum n
=1 / 38
vRi
ctangle
Fill
=#FF08B7D3
Grid.Row =1 Grid.Colum n
=1
/ 39
v!--Grid
第三列
-- 4
0
v Rectangle
Fill =#FFD30889 Grid.Row
=0 Grid.Colum n
=2 / 41
vRi
ctangle
Fill
=#FFB708D3
Grid.Row =1 Grid.Colum n
=2
/ 42
vRectangle
Fill
=#FF
4B484B Grid.Row =2 Grid.Column =2 / 43
v!--Grid
第四列-- 44
vRect
angle
Fill =#FF661F4D Grid.Row =0 Grid.Colum n =3
/ 45
vRectangle
Fill
=#FF0D
F0BC
Grid.Row
=1 Grid.Column =3 / 46
vRectangle
Fill =#FF0FAA4E
Grid.Row =2
Grid.Colum n
=3 / 47
v/ Grid 48
49
v/ UserControl p1EanqFDPw
vColumnDefinition
vColumnDefinit
=61*/ 28
Width =123*/ 29
Canvas 画布布局控件
定义一个区域,
您可能关注的文档
- vc数据挖掘中关联规则算法的应用分析研究9.docx
- vc游戏程序设计方案(五子棋).docx
- vc药品信息管理系统的设计方案与实现vcsql.docx
- vc车牌识别系统中字符识别研究.docx
- vic员工满意调查问卷(整理).docx
- vi设计方案分类分项报价.docx
- vmwareworkstationubuntu安装vmwaretools以及实现文件夹共享(经验之谈).docx
- vf宿舍管理完整实验.docx
- webgis采油厂生产管理(整理).docx
- web开发工程师面试题(含标准答案).docx
- 安徽省安庆市潜山市部分学校2025-2026学年七年级下学期阶段学情自测数学试题-普通用卷.docx
- 2026《微型无人机的设计基础综述》2600字.docx
- 安徽六安市金安区2025-2026学年八年级上学期2月期末物理试题-普通用卷.docx
- 2026《五菱汽车公司经营者股权激励实施成效及其启示》9700字.doc
- 北京市第一零九中学2026届高三下学期开学考试数学试题-普通用卷.docx
- 北京海淀实验中学2026届高三下学期数学开学检测试题-普通用卷.docx
- 2026《五菱汽车公司融资模式及融资风险分析》8700字.doc
- 2026《五菱汽车公司物流成本控制研究》文献综述开题报告(含提纲)3800字.doc
- 2026《五菱汽车公司薪酬改革问题研究》开题报告(文献综述)4200字.doc
- 2026《物流企业反内卷的战略转型研究—以顺丰控股为例》13000字.doc
最近下载
- 儿科学(第10版)儿童心肺复苏.pptx VIP
- 《第1课 身边的算法》说课稿教学反思-2023-2024学年小学信息技术浙教版2023五年级上册.docx VIP
- 2025-2026学年浙美版(新教材)小学美术三年级下册(全册)教学设计.docx
- 2025-2026年演出经纪人之演出市场政策与法律法规模拟题库及答案下载.pdf VIP
- 幼儿园教师春季卫生保健知识培训.pptx VIP
- 高速公路旧沥青路面铣刨料再生利用:技术、效益与前景.docx VIP
- 2025-2026学年浙美版(新教材)小学美术三年级下册《运动会奖杯设计》教学设计.docx VIP
- 2024 - 2025人教版(PEP)英语小学二年级下册教学计划 .docx VIP
- 2026年XX施工安全免责协议书.docx VIP
- DLT5300-2013 1000kV 架空输电线路工程施工质量检验及评定规程.docx VIP
原创力文档

文档评论(0)