C# Class Microsoft.Phone.Controls.SpeechTextBox

An extended PhoneTextBox that behaves as a speech-enabled textbox, with an optional event handler to override default behavior.
Inheritance: PhoneTextBox
Datei anzeigen Open project: Kinnara/WPToolkit

Public Methods

Method Description
OnApplyTemplate ( ) : void

Applies the template and adds a ManipulationStarted handler to the ActionIconBorder, if it exists.

SpeechTextBox ( ) : System

Creates a new instance of the SpeechTextBox class.

Private Methods

Method Description
HandleSpeech ( ) : void

Method to instantiate recognizer with appropriate grammar and perform recognition.

MicButtonManipulationStarted ( object sender, EventArgs e ) : void

Handler to record a snapshot of important state when the microphone button is clicked.

Mic_ActionIconTapped ( object sender, EventArgs e ) : void

Handler for when the ActionIcon is tapped.

PhraseBoxFocused ( object sender, RoutedEventArgs e ) : void

Handler to set focused to true

PhraseBoxUnFocused ( object sender, RoutedEventArgs e ) : void

Handler to set focused to false

Method Details

OnApplyTemplate() public method

Applies the template and adds a ManipulationStarted handler to the ActionIconBorder, if it exists.
public OnApplyTemplate ( ) : void
return void

SpeechTextBox() public method

Creates a new instance of the SpeechTextBox class.
public SpeechTextBox ( ) : System
return System