You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
4.9 KiB
XML
85 lines
4.9 KiB
XML
<Window x:Class="ScreenShotOCR.CaptureWindow"
|
|
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:ScreenShotOCR"
|
|
mc:Ignorable="d"
|
|
Title="CaptureWindow" Height="800" Width="600" WindowStyle="None" ResizeMode="NoResize" WindowState="Maximized" AllowsTransparency="True">
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
<Rectangle Height="30" Fill="#FF5291FF" Margin="0,0,0,770" VerticalAlignment="Top" />
|
|
<TextBlock Text="ScreenShot OCR - CaptureWindow" FontWeight="Bold" Margin="10,10,365,770" Height="20" VerticalAlignment="Top"/>
|
|
<TextBlock Text="by PINB" HorizontalAlignment="Right" FontSize="10" FontStyle="Italic" Margin="0,12,0,768" Width="50" Height="20" VerticalAlignment="Top"/>
|
|
<Button x:Name="copyBtn" Width="120" Height="20" Content="Copy to clipboard" Margin="340,35,140,0" VerticalAlignment="Top" Background="#FFFFE752" BorderBrush="#FFFFE752" Click="copyBtn_Click">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="10"/>
|
|
<Setter Property="Effect">
|
|
<Setter.Value>
|
|
<DropShadowEffect Color="Black" Direction="320" ShadowDepth="3" BlurRadius="5" Opacity="0.5" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="{x:Type Button}">
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<!--<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="White"/>-->
|
|
<Setter Property="Foreground" Value="Orange"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Button.Resources>
|
|
</Button>
|
|
<Button x:Name="ClearBtn" Width="60" Height="20" Content="Clear" Margin="465,35,75,0" VerticalAlignment="Top" Background="#FFA852FF" BorderBrush="#FFA852FF" Click="ClearBtn_Click">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="10"/>
|
|
<Setter Property="Effect">
|
|
<Setter.Value>
|
|
<DropShadowEffect Color="Black" Direction="320" ShadowDepth="3" BlurRadius="5" Opacity="0.5" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="{x:Type Button}">
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<!--<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="White"/>-->
|
|
<Setter Property="Foreground" Value="Purple"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Button.Resources>
|
|
</Button>
|
|
<Button x:Name="Close" Width="60" Height="20" Content="Close" Margin="530,35,10,0" VerticalAlignment="Top" Background="#FFFF5252" BorderBrush="#FFFF5252" Click="Close_Click">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="10"/>
|
|
<Setter Property="Effect">
|
|
<Setter.Value>
|
|
<DropShadowEffect Color="Black" Direction="320" ShadowDepth="3" BlurRadius="5" Opacity="0.5" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="{x:Type Button}">
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<!--<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="White"/>-->
|
|
<Setter Property="Foreground" Value="Red"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Button.Resources>
|
|
</Button>
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="10,60,10,10">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="55*"/>
|
|
<ColumnDefinition Width="3*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Image x:Name="ScreenView" Stretch="Fill" MouseDown="ScreenView_MouseDown" MouseMove="ScreenView_MouseMove" MouseUp="ScreenView_MouseUp" Grid.ColumnSpan="2"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|