当前位置: 首页 > news >正文

公司名称变更网站要重新备案网站的flash怎么做

公司名称变更网站要重新备案,网站的flash怎么做,网站设计配色,软件工程师分类前言 Grid是wpf中的容器控件&#xff0c;可将窗体分割为多行多列&#xff0c;每个单元格可以放置控件&#xff0c;在wpf中得到非常频繁的应用。 1、1行1列 默认填充满整个窗体 <Window x:Class"wpf之Grid.MainWindow"xmlns"http://schemas.microsoft.co…

前言

Grid是wpf中的容器控件,可将窗体分割为多行多列,每个单元格可以放置控件,在wpf中得到非常频繁的应用。

1、1行1列

默认填充满整个窗体
在这里插入图片描述

<Window x:Class="wpf之Grid.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:local="clr-namespace:wpf之Grid"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800" Background="Green" ><Grid Background="Blue"   Margin=" 10" ></Grid >
</Window>

2、1行多列

在这里插入图片描述

2.1 列宽度的设置

通过Grid.ColumnDefinitions来定义Grid有多少列,每一个ColumnDefinition都代表了一列,通过Width设置列的宽度。Width=“20” 代表使用绝对值宽度20,Width="2*"代表使用剩下宽度的比例,具体计算方式为把前的数字加起来作为分母,比如本文中就是2+1+1+1=5(*前面没写数字就是代表1*,不设置宽度也代表1*),所在列前面的数字作为分子,比如本文的第2列就是2/5,最终再乘以剩余没有被使用的宽度,相当于第2列占了剩余宽度的2份,3、4、5列各占了1份。

<Window x:Class="wpf之Grid.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:local="clr-namespace:wpf之Grid"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800" Background="Green" ><Grid Background="Blue"   Margin=" 10" ><Grid.ColumnDefinitions><ColumnDefinition Width="20" /><ColumnDefinition Width="2*"/><ColumnDefinition Width="1*"/><ColumnDefinition Width="*"/><ColumnDefinition /></Grid.ColumnDefinitions><TextBlock Grid.Column=" 0" Text="列1" Foreground="Red" Background="Yellow"/><TextBlock Grid.Column=" 1" Text="列2" Foreground="Red"  Background="White"/><TextBlock Grid.Column=" 1" Text="列2" Foreground="Red"  Background="White"/><TextBlock Grid.Column=" 2" Text="列3" Foreground="Red" Background="Yellow"/><TextBlock Grid.Column=" 3" Text="列4" Foreground="Red" Background="White" /><TextBlock Grid.Column=" 4" Text="列5" Foreground="Red" Background="Yellow"/></Grid >
</Window>

2.2 在每个列中添加控件

通过Grid.Column=" 0" 来指定控件占据哪一列,0代表占用第一列(索引从0开始)。

3、1列多行

在这里插入图片描述

3.1 行高度的设置

通过Grid.RowDefinitions来定义Grid有多少行,每一个RowDefinition都代表了一行,通过Height设置列的高度。Height=“20” 代表使用绝对值高度20,Height="2*"代表使用剩下高度的比例,具体计算方式为把前的数字加起来作为分母,比如本文中就是2+1+1+1=5(*前面没写数字就是代表1*,不设置宽度也代表1*),所在列前面的数字作为分子,比如本文的第2列就是2/5,最终再乘以剩余没有被使用的高度,相当于第2行占了剩余高度的2份,3、4、5行各占了1份。

<Window x:Class="wpf之Grid.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:local="clr-namespace:wpf之Grid"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800" Background="Green" ><Grid Background="Blue"   Margin=" 10" ><Grid.RowDefinitions  ><RowDefinition  Height ="20" /><RowDefinition Height="2*"/><RowDefinition Height="1*"/><RowDefinition Height="*"/><RowDefinition /></Grid.RowDefinitions><TextBlock Grid.Row =" 0" Text="行1" Foreground="Red" Background="Yellow"/><TextBlock Grid.Row=" 1" Text="行2" Foreground="Red"  Background="White"/><TextBlock Grid.Row=" 1" Text="行2" Foreground="Red"  Background="White"/><TextBlock Grid.Row=" 2" Text="行3" Foreground="Red" Background="Yellow"/><TextBlock Grid.Row=" 3" Text="行4" Foreground="Red" Background="White" /><TextBlock Grid.Row=" 4" Text="行5" Foreground="Red" Background="Yellow"/></Grid >
</Window>

3.2 在每个行中添加控件

通过Grid.Row==" 0" 来指定控件占据哪一行,0代表占用第一行(索引从0开始)。

4、多行多列

在这里插入图片描述
下面的代码中同时通过Grid.RowDefinitions 设置多行、Grid.ColumnDefinitions 设置多列,然后再通过给子控件TextBlock的 Grid.Row选择控件应该放置在哪一行,Grid.Column选择控件应该放置在哪一列。比如行2列2它的Grid.Row和Grid.Column都是1(索引从0开始)。

<Window x:Class="wpf之Grid.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:local="clr-namespace:wpf之Grid"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800" Background="Green" ><Grid Background="Blue"   Margin=" 10" ><Grid.RowDefinitions  ><RowDefinition  Height ="20" /><RowDefinition Height="1*"/></Grid.RowDefinitions><Grid.ColumnDefinitions   ><ColumnDefinition Width  ="200" /><ColumnDefinition Width="1*"/></Grid.ColumnDefinitions><TextBlock Grid.Row =" 0" Grid.Column="0"  Text="行1列1" Foreground="Red" Background="Yellow"/><TextBlock Grid.Row=" 1" Grid.Column="0"  Text="行2列1" Foreground="Red"  Background="White"/><TextBlock Grid.Row=" 0" Grid.Column="1"  Text="行1列2" Foreground="Red"  Background="White"/><TextBlock Grid.Row=" 1" Grid.Column="1"  Text="行2列2" Foreground="Red" Background="Yellow"/></Grid >
</Window>

马工撰写的年入30万+C#上位机项目实战必备教程(点击下方链接即可访问文章目录)

1、《C#串口通信从入门到精通》
2、《C#与PLC通信从入门到精通 》
3、《C# Modbus通信从入门到精通》
4、《C#Socket通信从入门到精通 》
5、《C# MES通信从入门到精通》
6、《winform控件从入门到精通》
7、《C#操作MySql数据库从入门到精通》

http://www.dtcms.com/a/579054.html

相关文章:

  • wordpress版 影视站网页设计的摘要怎么写
  • 外贸型网站建设公司汕头网站建设托管
  • 武汉大学《AM》:液态金属法合成破纪录铼纳米颗粒!强度67.8 GPa同时实现80%超高塑性
  • 用Python打造智能成绩分析系统:从异常处理到断言验证的全流程实战
  • 想要找个网站做环评公示中国网络运营商排名
  • 是一个网站或站点的第一个网页注册网站要求
  • 南宁网站建设及推广WordPress互联
  • 怎么做有趣的微视频网站建网站咨询
  • LORA参数微调
  • 微信小程序开发——第四章:小程序的组件与模块化开发
  • 苹果牵手谷歌!Siri 将搭载 1.2 万亿参数 Gemini 模型
  • 水利工程建设信息网站鞍山网站怎么做出来的
  • python做网站好处网络平台推广的好处
  • 建设一个境外网站网站建设仟首先金手指13
  • 如何开网站详细步骤接做网站私活
  • python做网站入门做网站文字怎么围绕图片
  • 操作系统原理:实验1进程观测
  • WGCLOUD的监控数据会自动清理吗
  • 西双版纳建设局网站庆阳网站设计制作
  • 如何解决 pip install 安装报错 [WinError 32] 文件被占用(杀毒/占用进程)问题
  • 雄县阿里巴巴网站建设wordpress 字段插件
  • 网站ip解析wordpress控制列表页
  • Zabbix基于LNMP架构部署与管理
  • Nginx 代理apk下载,重定向问题
  • 企业自己的网站天津建站模板搭建
  • 网站建设开票内容官方网站内容可做证据吗
  • gazobo
  • 机器学习中交叉验证(CV)、CV fold(交叉验证折) 和 数据泄露
  • 制造业数字化转型实践:如何构建企业级项目数字化运营体系
  • RFID 赋能卫生陶瓷高压成型全流程数据采集与管控应用