From d8365d2b1f7734638ac59e73c7abdf771f785b79 Mon Sep 17 00:00:00 2001 From: Valdimir Date: Sun, 28 Jan 2024 23:20:17 +0200 Subject: [PATCH] improve usability --- TV Player WPF/ProgramsList.xaml | 2 +- TV Player WPF/VideoPlayer.xaml | 3 +-- TV Player WPF/VideoPlayer.xaml.cs | 5 +---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/TV Player WPF/ProgramsList.xaml b/TV Player WPF/ProgramsList.xaml index df0e09a..3dc3355 100644 --- a/TV Player WPF/ProgramsList.xaml +++ b/TV Player WPF/ProgramsList.xaml @@ -15,7 +15,7 @@ SelectionChanged="ListBox_SelectionChanged"> - + diff --git a/TV Player WPF/VideoPlayer.xaml b/TV Player WPF/VideoPlayer.xaml index 1f8729b..3ab4d27 100644 --- a/TV Player WPF/VideoPlayer.xaml +++ b/TV Player WPF/VideoPlayer.xaml @@ -10,8 +10,7 @@ + HorizontalAlignment="Stretch" MouseLeftButtonDown="MyUserControl_MouseDown"> diff --git a/TV Player WPF/VideoPlayer.xaml.cs b/TV Player WPF/VideoPlayer.xaml.cs index 563a394..20110c4 100644 --- a/TV Player WPF/VideoPlayer.xaml.cs +++ b/TV Player WPF/VideoPlayer.xaml.cs @@ -78,10 +78,7 @@ namespace TV_Player { ToggleOverlay(); } - private void MyUserControl_TouchDown(object sender, TouchEventArgs e) - { - ToggleOverlay(); - } + private void ToggleOverlay() { if (overlayPanel.Visibility == Visibility.Visible)