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.
99 lines
5.0 KiB
XML
99 lines
5.0 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="200" Width="400"
|
|
WindowStyle="None" ResizeMode="NoResize" MouseLeftButtonDown="Window_MouseLeftButtonDown">
|
|
|
|
<Grid>
|
|
<Button Width="60" Height="20" Content="Capture" Margin="10,10,330,170" Background="#FF5291FF" BorderBrush="#FF5291FF">
|
|
<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 Width="60" Height="20" Content="OCR" Margin="75,10,265,170" Background="#FF52FF89" BorderBrush="#FF52FF89">
|
|
<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 Width="120" Height="20" Content="Copy to clipboard" Margin="140,10,140,170" Background="#FFFFE752" BorderBrush="#FFFFE752">
|
|
<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 Width="60" Height="20" Content="Close" Margin="330,10,10,170" Background="#FFFF5252" BorderBrush="#FFFF5252">
|
|
<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>
|
|
</Window>
|