12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using PDF_Office.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_Office.Views
- {
- /// <summary>
- /// MainContent.xaml 的交互逻辑
- /// </summary>
- public partial class MainContent : UserControl
- {
- /// <summary>
- /// 用来区分每个页签的唯一识别码,避免聚合事件重复订阅
- /// </summary>
- public string Unicode { get; set; }
- /// <summary>
- /// 保存单个页签内各ContentRegionName的Value
- /// 方便不同跨模块控制Region导肮
- /// </summary>
- public Dictionary<string, string> RegionContentNames { get; set; }
- /// <summary>
- /// 是否处于标记密文模式
- /// </summary>
- public bool IsInReadctonMode { get; set; } = false;
- public MainContent()
- {
- InitializeComponent();
- RegionContentNames = new Dictionary<string, string>();
- Unicode = Guid.NewGuid().ToString();
- //初始化时 更新selected 对象,比UI自动更新更快
- App.mainWindowViewModel.SelectedItem = this;
- }
- }
- }
|