按钮旋转
开发工具:VisualStudio2015 关键技术:WPF 作者:纳兹 撰写时间:2020年8月9日
首先进行页面布局,下面用栈式面板进行布局:
<StackPanel>
<Button Content="臭大肥"/>
<Button Content="坏大肥"/>
<Button Content="郭大肥"/>
<Button Content="郭小肥"/>
</StackPanel>
效果如下图:![在这里插入图片描述](https://img-blog.csdnimg.cn/20200809194013709.PNG#pic_center)
<Window.Resources>
<Style TargetType="{x:Type Button}">
布局按钮控件的宽度、高度、边距、字体大小、背景颜色等:
<Setter Property="Width" Value="100"/>
<Setter Property="Height" Value="50"/>
<Setter Property="Margin" Value="10"/>
<Setter Property="FontSize" Value="20"/>
<Setter Property="Background" Value="SteelBlue"/>
Render :渲染&
按钮旋转
最新推荐文章于 2022-09-07 19:49:31 发布