Class
SpeechToTextButtonContentTemplateSelector

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:

cs-api-definition
public class SpeechToTextButtonContentTemplateSelector : DataTemplateSelector

Inheritance: objectSpeechToTextButtonContentTemplateSelector

Constructors

SpeechToTextButtonContentTemplateSelector()

Declaration

cs-api-definition
public SpeechToTextButtonContentTemplateSelector()

Properties

ListeningTemplate

Gets or sets the template used when the speech recognizer is in the Listening state.

Declaration

cs-api-definition
public DataTemplate ListeningTemplate { get; set; }

Property Value

DataTemplate

NormalTemplate

Gets or sets the template used when the speech recognizer is not actively listening.

Declaration

cs-api-definition
public DataTemplate NormalTemplate { get; set; }

Property Value

DataTemplate

Methods

SelectTemplate(object, DependencyObject)

Returns a DataTemplate based on the provided SpeechRecognizerState.

Declaration

cs-api-definition
public override DataTemplate SelectTemplate(object item, DependencyObject container)

Parameters

item

object

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.