diff options
author | sr55 <[email protected]> | 2016-03-21 20:11:09 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-03-21 20:11:55 +0000 |
commit | b6a81f7e4fdde1eba56bde85e0e251cc6475f782 (patch) | |
tree | dfc96488cbce431b9b071b6f0536f7278244c8ea /win/CS/HandBrakeWPF/Views | |
parent | af1a27928318cc377562ec4026a2cbbfad83cbca (diff) |
WinGui: Some Cosmetic changes and links added to the GUI.
Diffstat (limited to 'win/CS/HandBrakeWPF/Views')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/AboutView.xaml | 13 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/AboutView.xaml.cs | 16 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/OptionsView.xaml | 4 |
3 files changed, 29 insertions, 4 deletions
diff --git a/win/CS/HandBrakeWPF/Views/AboutView.xaml b/win/CS/HandBrakeWPF/Views/AboutView.xaml index 0b0358251..6c640b459 100644 --- a/win/CS/HandBrakeWPF/Views/AboutView.xaml +++ b/win/CS/HandBrakeWPF/Views/AboutView.xaml @@ -28,6 +28,7 @@ <Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
+ <RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
@@ -38,11 +39,19 @@ <TextBlock Margin="0,0,0,1" FontSize="16" FontFamily="Segoe UI Light" VerticalAlignment="Bottom" Text="{Binding Version}" />
</StackPanel>
- <TextBlock Grid.Row="1" Margin="5,10,0,5" Text="{x:Static Properties:ResourcesUI.AboutView_License}" />
+ <StackPanel Orientation="Horizontal" Grid.Row="1" Margin="5,5,0,0">
+ <TextBlock Text="Website: " />
+ <TextBlock>
+ <Hyperlink x:Name="handbrakeWebsite" NavigateUri="/" RequestNavigate="HandbrakeWebsite_OnRequestNavigate" >https://handbrake.fr</Hyperlink>
+ </TextBlock>
+ </StackPanel>
+
+ <TextBlock Grid.Row="2" Margin="5,10,0,5" Text="{x:Static Properties:ResourcesUI.AboutView_License}" />
- <TextBox Text="{x:Static Properties:Resources.About_GPL}" Grid.Row="2" Margin="10,0,10,10" HorizontalAlignment="Stretch"
+ <TextBox Text="{x:Static Properties:Resources.About_GPL}" Grid.Row="3" Margin="10,0,10,10" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" IsReadOnly="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" />
+
</Grid>
</Grid>
diff --git a/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs b/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs index 2be3fd009..e2dc357ba 100644 --- a/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs @@ -9,7 +9,9 @@ namespace HandBrakeWPF.Views
{
+ using System.Diagnostics;
using System.Windows.Controls;
+ using System.Windows.Navigation;
/// <summary>
/// Interaction logic for AboutView.xaml
@@ -23,5 +25,19 @@ namespace HandBrakeWPF.Views {
InitializeComponent();
}
+
+ /// <summary>
+ /// The handbrake website_ on request navigate.
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
+ private void HandbrakeWebsite_OnRequestNavigate(object sender, RequestNavigateEventArgs e)
+ {
+ Process.Start("https://handbrake.fr");
+ }
}
}
diff --git a/win/CS/HandBrakeWPF/Views/OptionsView.xaml b/win/CS/HandBrakeWPF/Views/OptionsView.xaml index 61942c7f5..777264526 100644 --- a/win/CS/HandBrakeWPF/Views/OptionsView.xaml +++ b/win/CS/HandBrakeWPF/Views/OptionsView.xaml @@ -104,11 +104,11 @@ <StackPanel Orientation="Vertical" Margin="20,0,0,0">
<StackPanel Orientation="Horizontal">
<ComboBox Name="whenDone" ItemsSource="{Binding WhenDoneOptions}" SelectedItem="{Binding WhenDone}" Width="120" HorizontalAlignment="Left" />
-
+ <CheckBox Content="{x:Static Properties:ResourcesUI.Options_ResetDoNothing}" VerticalAlignment="Center" Margin="5,0,0,0" IsChecked="{Binding ResetWhenDoneAction}" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
- <CheckBox Content="{x:Static Properties:ResourcesUI.Options_ResetDoNothing}" VerticalAlignment="Center" IsChecked="{Binding ResetWhenDoneAction}" />
+
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
|