forked from yaobus/Clipbrd-Plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGensetting.xaml
92 lines (73 loc) · 6.76 KB
/
Gensetting.xaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<UserControl x:Class="Clipbrd_Plus.Gensetting"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Clipbrd_Plus"
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<md:TransitioningContent x:Name="TransitioningContentMenu" OpeningEffect="{md:TransitionEffect SlideInFromLeft, Duration=0:0:0.3}" Grid.ColumnSpan="2" Grid.RowSpan="3">
<Grid Background="White" >
<Grid Margin="0, 0" Height="40" VerticalAlignment="Top">
<StackPanel HorizontalAlignment="Left">
<TextBlock Text="{DynamicResource SetGeneralSetting}" Margin="10" FontSize="20" Foreground="#FF555555"></TextBlock>
</StackPanel>
</Grid>
<Grid Margin="0,40" >
<Grid.RowDefinitions>
<RowDefinition Height="45"/>
<RowDefinition Height="45"/>
<RowDefinition Height="45"/>
<RowDefinition Height="45"/>
<RowDefinition Height="45"/>
<RowDefinition Height="45"/>
</Grid.RowDefinitions>
<WrapPanel HorizontalAlignment="Left" Grid.Row="0" VerticalAlignment="Center">
<CheckBox x:Name="CbStaringRun" Margin="10" Height="24" Width=" 24" Background="#34b4c8" BorderBrush="#34b4c8" Click="CbStaringRun_OnClick"/>
<md:PackIcon Kind="Power" Margin="0" Height="24" Width="24" Foreground="#34b4c8" VerticalAlignment="Center"></md:PackIcon>
<TextBlock Text="{DynamicResource GenStart}" Margin="0,10" FontSize="16" Foreground="#34b4c8" VerticalAlignment="Center"></TextBlock>
</WrapPanel>
<WrapPanel HorizontalAlignment="Left" Grid.Row="1" VerticalAlignment="Center">
<CheckBox x:Name="CbPlayVoice" Margin="10" Height="24" Width=" 24" BorderBrush="#34b4c8" Background="#34b4c8" Click="CbPlayVoice_OnClick"></CheckBox>
<md:PackIcon Kind="Music" Margin="0" Height="24" Width="24" Foreground="#34b4c8" VerticalAlignment="Center"></md:PackIcon>
<TextBlock Text="{DynamicResource GenPlayVoice}" Margin="0,10" FontSize="16" Foreground="#34b4c8" VerticalAlignment="Center"></TextBlock>
<TextBox x:Name="TbVoicePath" Width="300" Height="32" Margin="10,0,10,0" BorderBrush="#34b4c8" Foreground="#34b4c8" Padding="0" BorderThickness="1" CaretBrush="DarkCyan" VerticalContentAlignment="Center" />
<Button x:Name="BrowseVoice" Margin="0" Width="90" Height="32" Background="#34b4c8" BorderBrush="#34b4c8" Padding="0" Click="BrowseVoice_OnClick">
<StackPanel Orientation="Horizontal" Height="24" Margin="0" VerticalAlignment="Center">
<md:PackIcon Kind="File" Height="24" Width="24"></md:PackIcon>
<TextBlock Text="{DynamicResource GenBrowse}" FontSize="16" Margin="0,1"></TextBlock>
</StackPanel>
</Button>
<Button x:Name="BtListen" Margin="10,0,0,0" Width="90" Height="32" Background="#34b4c8" BorderBrush="#34b4c8" Padding="0" Click="BtListen_OnClick">
<StackPanel Orientation="Horizontal" Height="24" Margin="0" VerticalAlignment="Center">
<md:PackIcon Kind="Play" Height="24" Width="24"></md:PackIcon>
<TextBlock Text="{DynamicResource GenListen}" FontSize="16" Margin="0,1"></TextBlock>
</StackPanel>
</Button>
</WrapPanel>
<WrapPanel HorizontalAlignment="Left" Grid.Row="2" VerticalAlignment="Center">
<md:PackIcon Kind="History" Margin="44,0,0,0" Height="24" Width="24" Foreground="#34b4c8" VerticalAlignment="Center"></md:PackIcon>
<TextBlock Text="{DynamicResource GenHistory}" Margin="0,10" FontSize="16" Foreground="#34b4c8" VerticalAlignment="Center"></TextBlock>
<TextBox x:Name="TbHistoryNumber" Width="60" Height="32" Margin="10,0,10,0" BorderBrush="#34b4c8" Padding="0" BorderThickness="1" CaretBrush="DarkCyan" VerticalAlignment="Center" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" Foreground="#34b4c8" TextChanged="TbHistoryNumber_OnTextChanged"></TextBox>
<TextBlock Text="{DynamicResource GenHistory2}" Margin="0,12" FontSize="14" Foreground="#34b4c8"></TextBlock>
</WrapPanel>
<WrapPanel HorizontalAlignment="Left" Grid.Row="3" VerticalAlignment="Center">
<md:PackIcon Kind="Language" Margin="44,0,0,0" Height="24" Width="24" Foreground="#34b4c8" VerticalAlignment="Center"></md:PackIcon>
<TextBlock Text="{DynamicResource GenLanguage}" Margin="0,10" FontSize="16" Foreground="#34b4c8" VerticalAlignment="Center"></TextBlock>
<ComboBox x:Name="LanguageList" Width="120" Height="32" Margin="10,0,10,0" FontSize="16" Foreground="#34b4c8" BorderBrush="#eeeeee" VerticalAlignment="Center" HorizontalAlignment="Center" BorderThickness="1" SelectionChanged="LanguageList_OnSelectionChanged" HorizontalContentAlignment="Center">
<ComboBoxItem Height="30" Content="简体中文" VerticalAlignment="Center" HorizontalAlignment="Center" Padding="0" />
<ComboBoxItem Height="30" Content="English" VerticalAlignment="Center" HorizontalAlignment="Center" Padding="0"/>
</ComboBox>
<TextBlock x:Name="LanguageSetInfo" Text="{DynamicResource GenRestartInfo}" Margin="0,10" FontSize="16" Foreground="#34b4c8" VerticalAlignment="Center" Visibility="Hidden" />
<Button x:Name="AppRestartButton" Margin="10,0" Width="90" Height="32" Background="#34b4c8" BorderBrush="#34b4c8" Padding="0" Click="ButtonBase_OnClick" Visibility="Hidden">
<StackPanel Orientation="Horizontal" Height="24" Margin="0" VerticalAlignment="Center">
<md:PackIcon Kind="Restart" Height="24" Width="24"></md:PackIcon>
<TextBlock Text="{DynamicResource GenRestart}" FontSize="16" Margin="0,1"></TextBlock>
</StackPanel>
</Button>
</WrapPanel>
</Grid>
</Grid>
</md:TransitioningContent>
</UserControl>