WPF系列:无边框窗口
2016-03-15 08:43
387 查看
<Window x:Class="Ares.Animations.Window3" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window3" Height="300" Width="300" WindowStyle="None" Background="{x:Null}" AllowsTransparency="True" > <DockPanel Background="BlueViolet"> <Border Height="30" Background="BlueViolet" DockPanel.Dock="Top" MouseLeftButtonDown="Window_MouseLeftButtonDown"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <TextBlock FontSize="18">无边框窗口</TextBlock> <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right"> <Rectangle Width="30" Height="30" Fill="Red" Stroke="Black" StrokeThickness="2"></Rectangle> <Rectangle Width="30" Height="30" Fill="Red" Stroke="Black" StrokeThickness="2"></Rectangle> <Rectangle Width="30" Height="30" Fill="Red" Stroke="Black" StrokeThickness="2" MouseDown="Rectangle_MouseDown"></Rectangle> </StackPanel> </Grid> </Border> <Border Background="WhiteSmoke" > <TextBlock>Center</TextBlock> </Border> </DockPanel> </Window>
相关文章推荐
- 如何将Action中的Hibernate查询结果LIST输出在控制台以及JSP界面
- Objective-C在ARC下结合GCD的单例模式和宏模版
- shell 之 echo
- JavaScript中的对象
- 提高VS2010/VS2012编译速度
- strust2 和 hibernate的整合------登录的实现
- 算法之水仙花
- 欢迎使用CSDN-markdown编辑器
- CO模块之利润中心会计
- [运维工具]systat iostat
- 16进制显示mtd块的内容
- NSDictionary所有API的学习。
- php伪静态
- 解决getHibernateTemplate().save ()不能将数据保存到数据库的问题
- Eclipse中常用快捷键
- Hibernate创建SessionFactory根据Hibernate版本而异
- MapReduce 原理及执行过程
- kafka
- SAP概念之利润中心
- 在页眉插入横线或下划线