protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); // load the window placement details from the user settings. SnoopWindowUtils.LoadWindowPlacement(this, Properties.Settings.Default.AppChooserWindowPlacement); }
protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); this.keyboardHook = new LowLevelKeyboardHook(PresentationSource.FromVisual(this)); this.keyboardHook.LowLevelKeyUp += KeyboardHook_LowLevelKeyUp; this.keyboardHook.Start(); // load the window placement details from the user settings. SnoopWindowUtils.LoadWindowPlacement(this, Settings.Default.AppChooserWindowPlacement); }
protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); // load whether all properties are shown by default this.PropertyGrid.ShowDefaults = Properties.Settings.Default.ShowDefaults; // load whether the previewer is shown by default this.PreviewArea.IsActive = Properties.Settings.Default.ShowPreviewer; // load the window placement details from the user settings. SnoopWindowUtils.LoadWindowPlacement(this, Properties.Settings.Default.SnoopUIWindowPlacement); }