Files
mpv.net/src/WPF/AboutWindow.xaml.cs
2021-06-22 20:54:14 +02:00

22 lines
499 B
C#

using System.Windows;
using System.Windows.Input;
namespace mpvnet
{
public partial class AboutWindow : Window
{
public AboutWindow()
{
InitializeComponent();
DataContext = this;
ContentBlock.Text = App.Version;
}
protected override void OnPreviewKeyDown(KeyEventArgs e) => Close();
protected override void OnMouseDown(MouseButtonEventArgs e) => Close();
public Theme Theme => Theme.Current;
}
}