SetSearchKeyboard() статический приватный Метод

static private SetSearchKeyboard ( bool value ) : void
value bool
Результат void
Пример #1
0
        private void TriggerLogin(Windows.UI.Popups.IUICommand command)
        {
            var flyout = new SettingsFlyout();

            flyout.Content    = new LoginView();
            flyout.HeaderText = "Login";
            flyout.IsOpen     = true;
            flyout.Closed    += (e, sender) =>
            {
                Messenger.Default.Unregister <CloseSettingsMessage>(this);
                SetSearchKeyboard(_isTypeToSearch);
            };
            Messenger.Default.Register <CloseSettingsMessage>(this, (message) =>
            {
                flyout.IsOpen = false;
                SetSearchKeyboard(_isTypeToSearch);
            });

            _isTypeToSearch = GetSearchKeyboard();
            App.SetSearchKeyboard(false);
        }
Пример #2
0
        private void TriggerContentPreferences(Windows.UI.Popups.IUICommand command)
        {
            var flyout = new SettingsFlyout();

            flyout.Content    = new ContentPreferencesView();
            flyout.HeaderText = "Content Preferences";
            flyout.IsOpen     = true;
            flyout.Closed    += async(e, sender) =>
            {
                Messenger.Default.Unregister <CloseSettingsMessage>(this);
                SetSearchKeyboard(_isTypeToSearch);
                await _baconProvider.GetService <ISettingsService>().Persist();
            };
            Messenger.Default.Register <CloseSettingsMessage>(this, async(message) =>
            {
                flyout.IsOpen = false;
                SetSearchKeyboard(_isTypeToSearch);
                await _baconProvider.GetService <ISettingsService>().Persist();
            });

            _isTypeToSearch = GetSearchKeyboard();
            App.SetSearchKeyboard(false);
        }