improve:截图功能
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<Window x:Class="Ink_Canvas.ScreenshotSelectorWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="选择截图区域"
|
||||
WindowStyle="None"
|
||||
AllowsTransparency="True"
|
||||
Background="Transparent"
|
||||
WindowState="Maximized"
|
||||
Topmost="True"
|
||||
ShowInTaskbar="False"
|
||||
Cursor="Cross"
|
||||
KeyDown="Window_KeyDown"
|
||||
MouseLeftButtonDown="Window_MouseLeftButtonDown"
|
||||
MouseMove="Window_MouseMove"
|
||||
MouseLeftButtonUp="Window_MouseLeftButtonUp">
|
||||
|
||||
<Grid Name="MainGrid">
|
||||
<!-- 半透明遮罩 -->
|
||||
<Rectangle Name="OverlayRectangle"
|
||||
Fill="Black"
|
||||
Opacity="0.3" />
|
||||
|
||||
<!-- 选择区域容器 -->
|
||||
<Canvas Name="SelectionCanvas">
|
||||
<!-- 选择区域 -->
|
||||
<Rectangle Name="SelectionRectangle"
|
||||
Stroke="Red"
|
||||
StrokeThickness="2"
|
||||
Fill="Transparent"
|
||||
Visibility="Collapsed" />
|
||||
|
||||
<!-- 尺寸信息显示 -->
|
||||
<Border Name="SizeInfoBorder"
|
||||
Background="Black"
|
||||
Opacity="0.8"
|
||||
CornerRadius="3"
|
||||
Padding="8,4"
|
||||
Visibility="Collapsed">
|
||||
<TextBlock Name="SizeInfoText"
|
||||
Foreground="White"
|
||||
FontSize="12"
|
||||
Text="0 x 0" />
|
||||
</Border>
|
||||
</Canvas>
|
||||
|
||||
<!-- 提示文字 -->
|
||||
<Border Background="Black"
|
||||
Opacity="0.8"
|
||||
CornerRadius="5"
|
||||
Padding="15,8"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Margin="0,50,0,0">
|
||||
<TextBlock Name="HintText"
|
||||
Text="拖拽鼠标选择截图区域,按ESC取消"
|
||||
Foreground="White"
|
||||
FontSize="16" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user