Selects the content template for a speech-to-text button based on the current SpeechRecognizerState.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class SpeechToTextButtonContentTemplateSelector : DataTemplateSelector
Inheritance: objectSpeechToTextButtonContentTemplateSelector
Constructors
public SpeechToTextButtonContentTemplateSelector()
Properties
ListeningTemplate
DataTemplate
Gets or sets the template used when the speech recognizer is in the Listening state.
public DataTemplate ListeningTemplate { get; set; }
NormalTemplate
DataTemplate
Gets or sets the template used when the speech recognizer is not actively listening.
public DataTemplate NormalTemplate { get; set; }
Methods
SelectTemplate(object, DependencyObject)
DataTemplate
Returns a DataTemplate based on the provided SpeechRecognizerState.
public override DataTemplate SelectTemplate(object item, DependencyObject container)
The current SpeechRecognizerState value.
containerDependencyObjectThe element that the template will be applied to.
Returns:DataTemplate
ListeningTemplate when the recognizer is listening; otherwise NormalTemplate, or the base implementation result if the state is not recognized.