WPF 去掉窗体边框

WPF 去掉窗体边框

【转载】http://blog.sina.com.cn/s/blog_8600e72b0101exxn.html

   
设置WindowStyle="None"、 AllowsTransparency="True" 即可。如下:
  • Windowx:Class="WpfApplication1.MainWindow"
  • xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  • xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  • Title="MainWindow"Height="350"Width="525"
  • WindowStyle="None"
  • AllowsTransparency="True">
  • <Grid>
  • </Grid>
  • </Window>

 

posted on 2017-08-11 15:54  蝸小牛  阅读(631)  评论(0)    收藏  举报

导航