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

网站域名 空间 是每年都要缴费吗查营业执照怎么查询

网站域名 空间 是每年都要缴费吗,查营业执照怎么查询,合肥专业网站建设公司,网站开发江西前言 StackPanel是WPF 中的布局容器之一&#xff0c;它的核心功能是将其子元素按水平或者垂直方向进行排列。 1、Orientation 该属性指定StackPanel中元素的排列方式&#xff0c;是水平排列还是垂直排列。 1&#xff09;Vertical 元素垂直方向紧凑排列。 <Window x:Clas…

前言

StackPanel是WPF 中的布局容器之一,它的核心功能是将其子元素按水平或者垂直方向进行排列。

1、Orientation

该属性指定StackPanel中元素的排列方式,是水平排列还是垂直排列。
1)Vertical
元素垂直方向紧凑排列。

<Window x:Class="wpf之StackPanel.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之StackPanel"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800"><StackPanel Orientation="Vertical"    ><TextBlock  Background="Red"  Text=" 1" /><TextBlock  Background="Blue"  Text=" 2" /><TextBlock  Background="Green"  Text=" 2" /></StackPanel>
</Window>

在这里插入图片描述

2)Horizontal
元素水平方向紧凑排列。

<Window x:Class="wpf之StackPanel.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之StackPanel"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800"><StackPanel Orientation="Horizontal"     ><TextBlock  Background="Red"  Text=" 1" /><TextBlock  Background="Blue"  Text=" 2" /><TextBlock  Background="Green"  Text=" 2" /></StackPanel>
</Window>

在这里插入图片描述

2、HorizontalAlignment

该属性指定元素水平方向上的对齐方式
1)Left

<Window x:Class="wpf之StackPanel.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之StackPanel"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800"><StackPanel Orientation="Vertical"       HorizontalAlignment="Left"                   ><TextBlock  Background="Red"  Text=" 1" /><TextBlock  Background="Blue"  Text=" 2" /><TextBlock  Background="Green"  Text=" 2" /></StackPanel>
</Window>

在这里插入图片描述

2)Right







在这里插入图片描述
3)Center

<Window x:Class="wpf之StackPanel.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之StackPanel"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800"><StackPanel Orientation="Vertical"       HorizontalAlignment="Center"                     ><TextBlock  Background="Red"  Text=" 1" /><TextBlock  Background="Blue"  Text=" 2" /><TextBlock  Background="Green"  Text=" 2" /></StackPanel>
</Window>

在这里插入图片描述
4)Stretch

<Window x:Class="wpf之StackPanel.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之StackPanel"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800"><StackPanel Orientation="Vertical"       HorizontalAlignment="Stretch"                      ><TextBlock  Background="Red"  Text=" 1" /><TextBlock  Background="Blue"  Text=" 2" /><TextBlock  Background="Green"  Text=" 2" /></StackPanel>
</Window>

在这里插入图片描述

3、VerticalAlignment

该属性指定元素垂直方向上的对齐方式
1)Top
在这里插入图片描述

2)Bottom

<Window x:Class="wpf之StackPanel.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之StackPanel"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800"><StackPanel Orientation="Horizontal"        VerticalAlignment ="Bottom"    ><TextBlock  Background="Red"  Text=" 1" /><TextBlock  Background="Blue"  Text=" 2" /><TextBlock  Background="Green"  Text=" 3" /></StackPanel>
</Window>

在这里插入图片描述

3)Center

<Window x:Class="wpf之StackPanel.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之StackPanel"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800"><StackPanel Orientation="Horizontal"        VerticalAlignment ="Center"    ><TextBlock  Background="Red"  Text=" 1" /><TextBlock  Background="Blue"  Text=" 2" /><TextBlock  Background="Green"  Text=" 3" /></StackPanel>
</Window>

在这里插入图片描述
4)Stretch

<Window x:Class="wpf之StackPanel.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之StackPanel"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800"><StackPanel Orientation="Horizontal"        VerticalAlignment ="Stretch"     ><TextBlock  Background="Red"  Text=" 1" /><TextBlock  Background="Blue"  Text=" 2" /><TextBlock  Background="Green"  Text=" 3" /></StackPanel>
</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/528997.html

相关文章:

  • 网络嗅探抓包工具 Wireshark v4.6.0
  • spin_lock 能否 sleep ? 虚拟化场景
  • Qt布局管理停靠窗口QDockWidget类
  • STM32定时器输出PWM波
  • 重庆做网站开发的公司天津市建设工程交易管理网站
  • 网站源码是用什么做的爱链接购买链接
  • 数学 - 基础线性代数
  • 蓝牙网关是什么?能做什么?
  • Python入门与MySQL数据库操作实践指南
  • 广东网站设计服务商服装在线设计平台
  • 网站 刷流量 SEO中山建网站多少钱
  • 启动中国蚁剑antsword
  • 建行移动门户网站首页齐齐哈尔电话黄页
  • FreeRTOS - 基于ESP32 串口数据收发
  • 【释义】摩尔定律性能收益在减弱
  • REFLECTOOL: Towards Reflection-Aware Tool-Augmented Clinical Agents
  • 基于android的体育馆预约使用系统
  • 免费psd模板网站商标注册申请需要什么材料
  • 【开题答辩全过程】以 查寝打卡系统为例,包含答辩的问题和答案
  • mvc 网站开发平度市城市建设局网站
  • 旅行社网站建设规划的内容wordpress 评论模板
  • EtherCAT转EtherNet/IP工业数据采集网关:保障编码器与工控机稳定交互的整合案例
  • 网络层网际协议IP
  • 凡科免费建站平台渭南定制网站建设公司
  • 哪款纳米研磨机能将药物颗粒做到≤100nm?需要多少小时?
  • 《C语言疑难点 --- 字符函数和字符串函数专题(上)》
  • 株洲网站建设联系方式知名的家居行业网站开发
  • 华为堡垒机
  • Wordpress做什么网站赚钱外贸英文网站建设
  • MyBatis注解与XML使用对比