Exemple #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Handles the Click event of the m_btnMatchSingleWord control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        /// ------------------------------------------------------------------------------------
        private void m_btnMatchSingleWord_Click(object sender, EventArgs e)
        {
            int selStart = TextControl.SelectionStart;

            ReplaceSelectedTextInCurrentEditControl(kContiguousLettersMatchExpr);
            TextControl.SelectionStart  = selStart + kContiguousLettersMatchExpr.Length;
            TextControl.SelectionLength = 0;
            TextControl.Focus();
        }
        private async void KeyboardPage_Loaded(object sender, RoutedEventArgs e)
        {
            await GazeKeyboard.LoadLayout("MinAAC.xaml");

            GazeKeyboard.GazePlusClickMode = _navParams.GazePlusClickMode;
            if (_navParams.SpeechMode)
            {
                EnterButton.Content = "\uE768";
                TextControl.Focus(FocusState.Programmatic);
                return;
            }
            EnterButton.Content = "\uE73E";
            if (_navParams.ChildNode != null)
            {
                TextControl.Text = _navParams.ChildNode.Caption;
                TextControl.SelectAll();
            }
        }