-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAdjustVideoWindow.xaml
More file actions
58 lines (55 loc) · 3.63 KB
/
AdjustVideoWindow.xaml
File metadata and controls
58 lines (55 loc) · 3.63 KB
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
<Window x:Class="ShowWrite.AdjustVideoWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ShowWrite"
xmlns:services="clr-namespace:ShowWrite.Services"
Title="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[AdjustVideo]}" Height="409" Width="364"
WindowStartupLocation="CenterOwner">
<StackPanel Margin="15,0,15,0" VerticalAlignment="Center" Height="332">
<TextBlock Text="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[Brightness]}" Foreground="Black" Margin="0,5"/>
<Slider x:Name="BrightnessSlider" Minimum="-100" Maximum="100" TickFrequency="1" ValueChanged="BrightnessSlider_ValueChanged"/>
<TextBlock Text="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[Contrast]}" Foreground="Black" Margin="0,10,0,5"/>
<Slider x:Name="ContrastSlider" Minimum="0.1" Maximum="3" TickFrequency="0.1" ValueChanged="ContrastSlider_ValueChanged"/>
<TextBlock Text="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[RotationDirection]}" FontWeight="Bold" Margin="0,0,0,10"/>
<ComboBox x:Name="RotationBox" Width="150">
<ComboBoxItem Tag="0">
<ComboBoxItem.Content>
<TextBlock>
<Run Text="0"/>
<Run Text="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[Degrees]}"/>
</TextBlock>
</ComboBoxItem.Content>
</ComboBoxItem>
<ComboBoxItem Tag="90">
<ComboBoxItem.Content>
<TextBlock>
<Run Text="90"/>
<Run Text="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[Degrees]}"/>
</TextBlock>
</ComboBoxItem.Content>
</ComboBoxItem>
<ComboBoxItem Tag="180">
<ComboBoxItem.Content>
<TextBlock>
<Run Text="180"/>
<Run Text="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[Degrees]}"/>
</TextBlock>
</ComboBoxItem.Content>
</ComboBoxItem>
<ComboBoxItem Tag="270">
<ComboBoxItem.Content>
<TextBlock>
<Run Text="270"/>
<Run Text="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[Degrees]}"/>
</TextBlock>
</ComboBoxItem.Content>
</ComboBoxItem>
</ComboBox>
<CheckBox x:Name="MirrorHCheck" Content="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[HorizontalMirror]}" Margin="0,15,0,5"/>
<CheckBox x:Name="MirrorVCheck" Content="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[VerticalMirror]}" Margin="0,0,0,15"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Height="60">
<Button Content="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[OK]}" Width="80" Margin="10" Click="Ok_Click"/>
<Button Content="{Binding Source={x:Static services:LanguageManager.Instance}, Path=Translations[Cancel]}" Width="80" Margin="10" IsCancel="True"/>
</StackPanel>
</StackPanel>
</Window>