WaiGuaView.xaml.cs 519 B

123456789101112131415161718192021222324252627282930
  1. using System.ComponentModel.Composition;
  2. using Infrastructure;
  3. namespace Modules.WaiGua
  4. {
  5. /// <summary>
  6. /// RobotView.xaml 的交互逻辑
  7. /// </summary>
  8. [ViewExport(RegionName = "WaiGuaRegion"), PartCreationPolicy(CreationPolicy.NonShared)]
  9. public partial class WaiGuaView
  10. {
  11. public WaiGuaView()
  12. {
  13. this.InitializeComponent();
  14. }
  15. [Import]
  16. private WaiGuaViewModel ViewModel
  17. {
  18. get
  19. {
  20. return this.DataContext as WaiGuaViewModel;
  21. }
  22. set
  23. {
  24. this.DataContext = value;
  25. }
  26. }
  27. }
  28. }