DataDisplayFrame.xaml.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Navigation;
  13. using System.Windows.Shapes;
  14. using Aitex.UI.Charting.ViewModel;
  15. namespace Aitex.UI.Charting.View
  16. {
  17. /// <summary>
  18. /// Interaction logic for DataDisplayFrame.xaml
  19. /// </summary>
  20. public partial class DataDisplayFrame : UserControl
  21. {
  22. public DataDisplayFrame()
  23. {
  24. InitializeComponent();
  25. Loaded += new RoutedEventHandler(DataDisplayFrame_Loaded);
  26. }
  27. void DataDisplayFrame_Loaded(object sender, RoutedEventArgs e)
  28. {
  29. //special process for this object, for MVVM binding is not effective here
  30. CommonViewModel.Instance.DataConfigViewRow = dataCfgViewRow;
  31. DataContext = new DataDisplayViewModel();
  32. }
  33. }
  34. }