WP and Win10

效果:(数字是参考值,和UI无关)

<Page
x:Class="_05.AllControls._BorderUsePage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:_05.AllControls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <!--快乐玩耍:DIV一个手机-->
<Grid>
<!--手机整体-->
<Border BorderBrush="Green"
BorderThickness="4"
CornerRadius="10,10,10,10">
<Grid>
<!--主屏幕-->
<Border BorderBrush="Gray"
BorderThickness="2"
Margin="10,60,10,30">
<TextBlock FontFamily="微软雅黑">对不起,系统已挂联系逆天重装Win10!</TextBlock>
</Border>
<!--底部-->
<Border BorderBrush="Black"
BorderThickness="2"
CornerRadius="0,0,10,10"
VerticalAlignment="Bottom"
Height="30">
<!--底部按键-->
<Grid>
<SymbolIcon Symbol="Back" HorizontalAlignment="Left" Margin="50,0,0,0" Width="50" />
<SymbolIcon Symbol="Home" HorizontalAlignment="Center" Width="50" />
<SymbolIcon Symbol="Zoom" HorizontalAlignment="Right" Margin="0,0,50,0" Width="50" />
</Grid>
</Border>
</Grid>
</Border>
</Grid>
</Page>

WPF

效果:(边框想要div必须注意==>WindowStyle="None" Background="Transparent" AllowsTransparency="True" MouseLeftButtonDown="DragWindow")

代码:

<Window x:Class="WaterMarkAPP.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="水印工具" Height="545" Width="298" Background="Transparent" AllowsTransparency="True"
WindowStyle="None" ShowInTaskbar="False" WindowStartupLocation="CenterScreen" MouseLeftButtonDown="DragWindow"> <!--快乐玩耍:DIV一个手机-->
<!--手机整体-->
<Border BorderBrush="Green"
Background="Black"
BorderThickness="4"
CornerRadius="10,10,10,10">
<Grid>
<!--主屏幕-->
<Border BorderBrush="Gray"
BorderThickness="2"
Margin="10,50,10,40">
<Grid Background="#FF151515">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<TextBlock FontFamily="微软雅黑">对不起,系统已挂请联系逆天重装Win10!</TextBlock>
<Button Grid.Row="1" Opacity="0.4" HorizontalAlignment="Center" VerticalAlignment="Center" Height="50" Width="100" Click="Button_Click">单个水印</Button>
<Button Grid.Row="2" Opacity="0.4" HorizontalAlignment="Center" VerticalAlignment="Center" Height="50" Width="100" Click="Button_Click_1">批量水印</Button>
<Button Grid.Row="3" Opacity="0.4" HorizontalAlignment="Center" VerticalAlignment="Center" Height="50" Width="100" Click="Button_Click_2">关闭程序</Button>
</Grid>
</Border>
<!--底部-->
<Border BorderBrush="Black"
BorderThickness="2"
CornerRadius="0,0,10,10"
VerticalAlignment="Bottom"
Height="40">
<!--底部按键-->
<Grid>
<TextBlock Text="毒" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="80,0,0,0" Width="20" Foreground="Gray" MouseLeave="TextBlock_MouseLeave" />
<TextBlock Text="逆" HorizontalAlignment="Center" VerticalAlignment="Center" Width="20" Foreground="Gray" MouseLeave="TextBlock_MouseLeave_1"/>
<TextBlock Text="天" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,80,0" Width="20" Foreground="Gray" MouseLeave="TextBlock_MouseLeave_2"/>
</Grid>
</Border>
</Grid>
</Border>
</Window>

扩:DragWindow事件如图

最新文章

  1. hander消息机制原理
  2. css常见的易混淆属性和值的区别(一)
  3. LeetCode【217. Contains Duplicate】
  4. centos7重启rsyslog服务|centos7重启syslog服务
  5. Spring Controller参数为空串的处理方式
  6. ARP劫持攻击
  7. hdu 2438Turn the corner 三分
  8. 三思考,实现自己定义404页:Tomcat、SpringMVC精确匹配、重写DispatchServlet
  9. C# - Abstract Classes
  10. mysql支持的数据类型及其测试
  11. linux系统下find删除目录下除一文件外的所有文件
  12. const 成员函数
  13. XVII Open Cup named after E.V. Pankratiev. Eastern GP, Division 1
  14. 第十一节,全连接网络中的优化技巧-过拟合、正则化,dropout、退化学习率等
  15. Opencv改变图像亮度和对比度以及优化
  16. ZOJ 1259 Rails
  17. 【angular5项目积累总结】侧栏菜单 navmenu
  18. hadoop 配置文件简析
  19. 1062 Talent and Virtue (25 分)
  20. [NOIp2016]蚯蚓 (队列)

热门文章

  1. angular.element的常用方法
  2. make基础(转)
  3. 如何在两个activity之间传递bitmap
  4. linux下显示dd命令的进度:
  5. Mac中使用port升级gcc版本
  6. Quartz.net2.2初体验
  7. Java多线程系列--“JUC锁”11之 Semaphore信号量的原理和示例
  8. [ACM_几何] The Deadly Olympic Returns!!! (空间相对运动之最短距离)
  9. Spring Trasnaction管理(3)- 事务嵌套
  10. 分离EF connectionString里的db连接串