add DragWindow
This commit is contained in:
1 parent
7417a1715b
commit
004ae9422b
11 files changed
+341
-188
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<controls:BlurWindow x:Class="HandyControlDemo.Window.NoClientDragableWindow"
|
||||
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:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl"
|
||||
mc:Ignorable="d"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
ShowTitle="True"
|
||||
Style="{StaticResource WindowBlur}"
|
||||
Icon="/HandyControlDemo;component/Resources/Img/icon.ico"
|
||||
ShowNonClientArea="False"
|
||||
controls:DragWindows.EnableDrag="{Binding ElementName=dragCheck, Path=IsChecked}"
|
||||
Title="NoClientDragableWindow" Height="450" Width="800">
|
||||
<StackPanel Background="Transparent" Margin="0,40" VerticalAlignment="Top">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="IsDragable" Margin="5,5"/>
|
||||
<ToggleButton IsChecked="True" Name="dragCheck" VerticalAlignment="Center" Style="{StaticResource ToggleButtonSwitch}"/>
|
||||
</StackPanel>
|
||||
<Button Content="Close Window" Command="SystemCommands.CloseWindowCommand"/>
|
||||
</StackPanel>
|
||||
</controls:BlurWindow>
|
||||
Reference in new issue
Block a user