diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/SubtitlesView.xaml.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/SubtitlesView.xaml.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml.cs b/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml.cs index ea3e67114..373734bb0 100644 --- a/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml.cs @@ -9,6 +9,7 @@ namespace HandBrakeWPF.Views
{
+ using System.Windows;
using System.Windows.Controls;
/// <summary>
@@ -21,7 +22,18 @@ namespace HandBrakeWPF.Views /// </summary>
public SubtitlesView()
{
- InitializeComponent();
+ this.InitializeComponent();
+ }
+
+ private void SubtitleOptionsButton_OnClick(object sender, RoutedEventArgs e)
+ {
+ var button = sender as FrameworkElement;
+ if (button != null && button.ContextMenu != null)
+ {
+ button.ContextMenu.PlacementTarget = button;
+ button.ContextMenu.Placement = System.Windows.Controls.Primitives.PlacementMode.Bottom;
+ button.ContextMenu.IsOpen = true;
+ }
}
}
}
|