forked from Half1900/AlphaClicker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGetCursorPos.xaml
More file actions
51 lines (44 loc) · 2 KB
/
GetCursorPos.xaml
File metadata and controls
51 lines (44 loc) · 2 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<Window x:Name="getCursorPosWindow" x:Class="AlphaClicker.GetCursorPos"
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:AlphaClicker"
mc:Ignorable="d"
ResizeMode="CanMinimize"
WindowStyle="None"
Title="Cursor Location Picker"
Topmost="True"
Height="80" Width="200"
Background="{x:Null}"
AllowsTransparency="True"
Loaded="getCursorPosWindow_Loaded">
<Border Margin="10"
CornerRadius="15"
Background="{DynamicResource WindowBackgroundColor}"
BorderBrush="Gray"
BorderThickness="0.3">
<Border.Effect>
<DropShadowEffect BlurRadius="15" Direction="-90"
RenderingBias="Quality" ShadowDepth="2"/>
</Border.Effect>
<Grid HorizontalAlignment="Stretch" Height="Auto" Margin="0,0,0,0" VerticalAlignment="Stretch" Width="Auto">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="23*"></RowDefinition>
<RowDefinition Height="7*"/>
</Grid.RowDefinitions>
<Label Content="点击或按ESC键获取当前坐标"
HorizontalAlignment="Center"
VerticalAlignment="Center" Width="165"/>
<Label x:Name="xLbl" Content="X: 0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Grid.Row="1" Margin="40,2,0,2" Grid.RowSpan="2"/>
<Label x:Name="yLbl" Content="Y: 0"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Grid.Row="1" Margin="0,2,40,2" Grid.RowSpan="2"/>
</Grid>
</Border>
</Window>