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.

84 lines
4.6 KiB
XML

<Window x:Class="ScreenShotOCR.MainWindow"
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="MainWindow" Height="450" Width="400"
WindowStyle="None" ResizeMode="NoResize" MouseLeftButtonDown="Window_MouseLeftButtonDown">
<Grid>
<Rectangle Height="30" Fill="#FF5291FF" Margin="0,0,0,420"/>
<TextBlock Text="ScreenShot OCR" FontWeight="Bold" Margin="15,8,265,422" Width="120" Height="20"/>
<TextBlock Text="v 1.0" FontSize="8" FontWeight="Light" Margin="116,12,234,418" Width="50" Height="20"/>
<TextBlock Text="by PINB" HorizontalAlignment="Right" FontSize="10" FontStyle="Italic" Margin="0,10,0,420" Width="50" Height="20"/>
<Button x:Name="CaptureBtn" Width="60" Height="20" Content="Capture" Margin="200,35,140,395" Background="#FF5291FF" BorderBrush="#FF5291FF" Click="CaptureBtn_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="Blue"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Resources>
</Button>
<Button x:Name="OCRBtn" Width="60" Height="20" Content="OCR" Margin="265,35,75,395" Background="#FF52FF89" BorderBrush="#FF52FF89" Click="OCRBtn_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="Green"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Resources>
</Button>
<Button x:Name="Close" Width="60" Height="20" Content="Close" Margin="330,35,10,395" 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>
<TextBox x:Name="textblock" HorizontalAlignment="Left" Height="380" Margin="10,60,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="380" AcceptsReturn="True"/>
</Grid>
</Window>