diff --git a/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml b/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml new file mode 100644 index 0000000..fae4084 --- /dev/null +++ b/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml.cs b/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml.cs new file mode 100644 index 0000000..52f9686 --- /dev/null +++ b/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml.cs @@ -0,0 +1,33 @@ +using CRSim.ViewModels.Zibo; + +namespace CRSim.Views.Zibo +{ + /// + /// SecondaryScreen.xaml 的交互逻辑 + /// + public partial class SecondaryScreenView : Window + { + public SecondaryScreenViewModel ViewModel { get; } + public SecondaryScreenView(SecondaryScreenViewModel viewModel) + { + InitializeComponent(); + ViewModel = viewModel; + DataContext = viewModel; + } + private void Window_MouseDown(object sender, MouseButtonEventArgs e) + { + if (e.ChangedButton == MouseButton.Left) + { + DragMove(); + } + } + + private void Window_KeyDown(object sender, KeyEventArgs e) + { + if (e.Key == Key.Escape) + { + Close(); + } + } + } +}