public ePUBBookView2() { using (new TimeLogger("ePUBBookView.ePUBBookView")) { InitializeComponent(); VisualHelper.AllowFocus(this); Messenger.Default.Register <TocNaviguateNotification>(this, HandleNaviguationChange); this.Loaded += (object sender, RoutedEventArgs e) => { SetValue(ThisProperty, this); ePUBBookViewModel2 viewmodel = (this.DataContext as ePUBBookViewModel2); if (viewmodel.DocumentContent == null) { viewmodel.Load(); SubscribeToAllHyperlinks((this.DataContext as ePUBBookViewModel2).DocumentContent as FrameworkContentElement); } }; this.Unloaded += (object sender, RoutedEventArgs e) => { ePUBBookViewModel2 viewmodel = (this.DataContext as ePUBBookViewModel2); if (viewmodel.DocumentContent == null) { viewmodel.Load(); UnsubscribeToAllHyperlinks((this.DataContext as ePUBBookViewModel2).DocumentContent as FrameworkContentElement); } }; } }
public TwoPageView() { using (new TimeLogger("TwoPageView.TwoPageView")) { InitializeComponent(); VisualHelper.AllowFocus(this); } }
public XpsBookView() { using (new TimeLogger("XpsBookView.XpsBookView")) { InitializeComponent(); VisualHelper.AllowFocus(this); } }
public FeedView() { using (new TimeLogger("FeedView.FeedView")) { InitializeComponent(); VisualHelper.AllowFocus(this); } }
public LibraryView() { using (new TimeLogger("LibraryView.LibraryView")) { InitializeComponent(); VisualHelper.AllowFocus(this); } }
public DriveExplorerView() { using (new TimeLogger("DriveExplorerView.DriveExplorerView")) { InitializeComponent(); VisualHelper.AllowFocus(this); } }
public ExplorerView() { using (new TimeLogger("ExplorerView.ExplorerView")) { InitializeComponent(); VisualHelper.AllowFocus(this); if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { Messenger.Default.Register <MessageBase>(this, (s) => { this.CatalogListView.Grouping(); }); } } }