Example #1
0
        private void ActivateContent()
        {
            HotKeyHelper.UnregisterHotKey();
            this.viewModel.ShowAllCommands();
            if (this.viewModel.FilteredCommandList.Count > 0)
            {
                this.SuggestionList.ScrollIntoView(this.viewModel.FilteredCommandList[0]);
            }

            this.Top           = ScreenHelper.GetPrimaryScreen().Bounds.Height * 0.20;
            this.Left          = ScreenHelper.GetAppCenterScreenWidth(this.Width);
            this.Visibility    = Visibility.Visible;
            this.SizeToContent = SizeToContent.Height;

            HotKeyHelper.SetForegroundWindow(HotKeyHelper.applicationHandle);
        }