diff --git a/CRSim/Views/Windows/Stations/Zibo/PrimaryScreenView.xaml b/CRSim/Views/Windows/Stations/Zibo/PrimaryScreenView.xaml new file mode 100644 index 0000000..9b7388f --- /dev/null +++ b/CRSim/Views/Windows/Stations/Zibo/PrimaryScreenView.xaml @@ -0,0 +1,395 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CRSim/Views/Windows/Stations/Zibo/PrimaryScreenView.xaml.cs b/CRSim/Views/Windows/Stations/Zibo/PrimaryScreenView.xaml.cs new file mode 100644 index 0000000..a276d94 --- /dev/null +++ b/CRSim/Views/Windows/Stations/Zibo/PrimaryScreenView.xaml.cs @@ -0,0 +1,33 @@ +using CRSim.ViewModels.Zibo; + +namespace CRSim.Views.Zibo +{ + /// + /// PrimaryScreen.xaml 的交互逻辑 + /// + public partial class PrimaryScreenView : Window + { + public PrimaryScreenViewModel ViewModel { get; } + public PrimaryScreenView(PrimaryScreenViewModel 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(); + } + } + } +}