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:
C#
public class SpeechToTextButtonContentTemplateSelector : DataTemplateSelector
Inheritance: objectSpeechToTextButtonContentTemplateSelector
Constructors
C#
public SpeechToTextButtonContentTemplateSelector()
Properties
ListeningTemplate
DataTemplate
Gets or sets the template used when the speech recognizer is in the Listening state.
C#
public DataTemplate ListeningTemplate { get; set; }
NormalTemplate
DataTemplate
Gets or sets the template used when the speech recognizer is not actively listening.
C#
public DataTemplate NormalTemplate { get; set; }
Methods
Returns a DataTemplate based on the provided SpeechRecognizerState.
C#
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.