-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFloatingWindow.axaml
More file actions
33 lines (33 loc) · 1.88 KB
/
FloatingWindow.axaml
File metadata and controls
33 lines (33 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<Window xmlns="https://github.com/avaloniaui"
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:windowSwitcher="clr-namespace:WindowSwitcher"
xmlns:windows="clr-namespace:WindowSwitcher.Windows"
Icon="/Assets/WS_logo.ico"
ShowInTaskbar="False"
CanMinimize="False"
CanMaximize="False"
ShowActivated="False"
mc:Ignorable="d"
x:Class="WindowSwitcher.Windows.FloatingWindow"
Title=""
Topmost="True"
CanResize="True"
Resized="FloatingWindowResized"
PointerReleased="WindowPointerReleased"
Closing="FloatingWindowClosing"
ExtendClientAreaToDecorationsHint="True"
ExtendClientAreaChromeHints="NoChrome"
ExtendClientAreaTitleBarHeightHint="-1"
x:DataType="windows:MainWindow">
<Canvas Name="WindowCanvas" Background="{StaticResource FloatingWindowBackgroundBrush}" PointerPressed="CanvasPointerPressed" PointerReleased="CanvasPointerReleased" PointerEntered="CanvasPointerEntered" PointerMoved="CanvasPointerMoved" PointerExited="CanvasPointerExited">
<Canvas.ContextMenu>
<ContextMenu Name="FloatingWindowContextMenu"></ContextMenu>
</Canvas.ContextMenu>
<Image Name="WindowScreenshot" Stretch="Fill" Opacity="0.8" IsHitTestVisible="False" />
<Border Name="PreviewBorder" BorderThickness="2" Background="Transparent"
IsVisible="False" IsHitTestVisible="False" />
<Label FontSize="10" Margin="2 0" Padding="0" Foreground="{StaticResource FloatingWindowLabelBrush}" FontWeight="Bold" Name="WindowLabel"><TextBlock>window name</TextBlock></Label>
</Canvas>
</Window>