Files
IPTVplayer/TV Player WPF/MainWindow.xaml.cs
T

27 lines
605 B
C#

using System.Windows;
using System.Windows.Input;
namespace TV_Player
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void UserControl_KeyDown(object sender, KeyEventArgs e)
{
if (DataContext is MainViewModel viewModel)
{
viewModel.OnKeyDownCommand.Execute(e);
}
}
protected override void OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs e)
{
e.Handled = true;
}
}
}