12345678910111213141516171819202122232425262728293031 |
- using Vinno.vCloud.ReportTemplate.ViewModel.ViewModels;
- using vStation.Presentation.Exams;
- using vStation.Utilities;
- using vStation.ViewModel.Exams;
- namespace vStation.Presentation.ReportTemplate
- {
- /// <summary>
- /// SingleSelectedVerticalView.xaml 的交互逻辑
- /// </summary>
- public partial class SingleSelectedVerticalView
- {
- public SingleSelectedVerticalView()
- {
- InitializeComponent();
- }
- private void SingleSelectedView_OnPreviewMouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
- {
- var recordCommentWindow = UiTreeHelper.GetParentObject<RecordComments>(this);
- if (recordCommentWindow != null)
- {
- if (recordCommentWindow.DataContext is RecordCommentViewModel recordCommentViewModel &&
- DataContext is SingleSelectedVerticalViewModel singleSelectedVerticalViewModel)
- {
- recordCommentViewModel.CurrentElement = singleSelectedVerticalViewModel;
- }
- }
- }
- }
- }
|