-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScreenCaptureWindow.xaml
More file actions
37 lines (36 loc) · 1.59 KB
/
ScreenCaptureWindow.xaml
File metadata and controls
37 lines (36 loc) · 1.59 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
<Window x:Class="Image2Text.ScreenCaptureWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Screen Capture"
WindowStyle="None"
ResizeMode="NoResize"
ShowInTaskbar="False"
WindowStartupLocation="Manual"
Background="#33000000"
AllowsTransparency="True"
Topmost="True"
Cursor="Cross"
MouseDown="Window_MouseDown"
MouseMove="Window_MouseMove"
MouseUp="Window_MouseUp"
KeyDown="Window_KeyDown">
<Grid>
<Canvas Name="SelectionCanvas"/>
<!-- Hint pill -->
<Border HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,24,0,0"
Background="#FF111114" BorderBrush="#FF6366F1" BorderThickness="1"
CornerRadius="10" Padding="14,9">
<StackPanel Orientation="Horizontal">
<TextBlock Text="✎" Foreground="#FF818CF8" FontSize="13" FontWeight="Bold"
VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBlock Foreground="#FFD4D4D8" FontSize="13" VerticalAlignment="Center"
FontFamily="Segoe UI Variable, Segoe UI">
<Run Text="Click and drag to select an area"/>
<Run Text=" • " Foreground="#FF222228"/>
<Run Text="ESC" Foreground="#FF818CF8" FontWeight="SemiBold"/>
<Run Text=" to cancel"/>
</TextBlock>
</StackPanel>
</Border>
</Grid>
</Window>