using PDF_Master.ViewModels; using Prism.Ioc; using Prism.Regions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace PDF_Master.Views { /// /// MainContent.xaml 的交互逻辑 /// public partial class MainContent : UserControl { /// /// 用来区分每个页签的唯一识别码,避免聚合事件重复订阅 /// public string Unicode { get; set; } /// /// 保存单个页签内各ContentRegionName的Value /// 方便不同跨模块控制Region导肮 /// public Dictionary RegionContentNames { get; set; } /// /// 是否处于标记密文模式 /// public bool IsInReadctonMode { get; set; } = false; public MainContent() { InitializeComponent(); RegionContentNames = new Dictionary(); Unicode = Guid.NewGuid().ToString(); //初始化时 更新selected 对象,比UI自动更新更快 App.mainWindowViewModel.SelectedItem = this; } } }