1234567891011121314151617181920212223242526272829 |
- <Window x:Class="Test.NoBorderWin.WinNoBorder"
- 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:Test.NoBorderWin"
- mc:Ignorable="d"
- Title="WinNoBorder" Height="450" Width="800" Background="Gold" >
- <Window.Resources>
- <!--WindowChrome.WindowChrome="{DynamicResource WindowChromeKey}"-->
- <!--此属性的设置和默认窗体的样板有关,客户区和非客户区-->
- <WindowChrome x:Key="WindowChromeKey">
- <WindowChrome.ResizeBorderThickness>
- <Thickness>5</Thickness>
- </WindowChrome.ResizeBorderThickness>
- </WindowChrome>
- </Window.Resources>
- <!--<Window.Template>
- <ControlTemplate TargetType="Window">
- <Border />
- </ControlTemplate>
- </Window.Template>-->
- <WindowChrome.WindowChrome>
- <WindowChrome />
- </WindowChrome.WindowChrome>
- <Grid>
- </Grid>
- </Window>
|