-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
26 lines (25 loc) · 1.21 KB
/
Copy pathMainWindow.xaml
File metadata and controls
26 lines (25 loc) · 1.21 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
<Window x:Class="FocusMask.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="FocusMask" Height="450" Width="800"
WindowStyle="None" AllowsTransparency="True" Background="Transparent"
Topmost="True" ShowInTaskbar="False" ResizeMode="NoResize"
Loaded="Window_Loaded" Closing="Window_Closing">
<Grid>
<Path x:Name="OverlayPath" IsHitTestVisible="False">
<Path.Fill>
<SolidColorBrush x:Name="MaskBrush" Color="Black" Opacity="0.75"/>
</Path.Fill>
<Path.Data>
<CombinedGeometry GeometryCombineMode="Exclude">
<CombinedGeometry.Geometry1>
<RectangleGeometry Rect="-10000,-10000,30000,30000" />
</CombinedGeometry.Geometry1>
<CombinedGeometry.Geometry2>
<RectangleGeometry x:Name="HoleGeometry" Rect="0,0,0,0" RadiusX="12" RadiusY="12" />
</CombinedGeometry.Geometry2>
</CombinedGeometry>
</Path.Data>
</Path>
</Grid>
</Window>