ClassSpeechToTextButtonContentTemplateSelector
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
SpeechToTextButtonContentTemplateSelector()
Declaration
public SpeechToTextButtonContentTemplateSelector()
Properties
ListeningTemplate
Gets or sets the template used when the speech recognizer is in the Listening state.
Declaration
public DataTemplate ListeningTemplate { get; set; }
Property Value
DataTemplate
NormalTemplate
Gets or sets the template used when the speech recognizer is not actively listening.
Declaration
public DataTemplate NormalTemplate { get; set; }
Property Value
DataTemplate
Methods
SelectTemplate(object, DependencyObject)
Returns a DataTemplate based on the provided SpeechRecognizerState.
Declaration
public override DataTemplate SelectTemplate(object item, DependencyObject container)
Parameters
item
The current SpeechRecognizerState value.
container
DependencyObject
The 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.