MainContent.xaml.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using PDF_Office.ViewModels;
  2. using Prism.Ioc;
  3. using Prism.Regions;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows;
  10. using System.Windows.Controls;
  11. using System.Windows.Data;
  12. using System.Windows.Documents;
  13. using System.Windows.Input;
  14. using System.Windows.Media;
  15. using System.Windows.Media.Imaging;
  16. using System.Windows.Navigation;
  17. using System.Windows.Shapes;
  18. namespace PDF_Office.Views
  19. {
  20. /// <summary>
  21. /// MainContent.xaml 的交互逻辑
  22. /// </summary>
  23. public partial class MainContent : UserControl
  24. {
  25. /// <summary>
  26. /// 用来区分每个页签的唯一识别码,避免聚合事件重复订阅
  27. /// </summary>
  28. public string Unicode { get; set; }
  29. /// <summary>
  30. /// 保存单个页签内各ContentRegionName的Value
  31. /// 方便不同跨模块控制Region导肮
  32. /// </summary>
  33. public Dictionary<string, string> RegionContentNames { get; set; }
  34. public MainContent()
  35. {
  36. InitializeComponent();
  37. RegionContentNames = new Dictionary<string, string>();
  38. Unicode = Guid.NewGuid().ToString();
  39. }
  40. }
  41. }