New to Telerik UI for WinForms? Start a free 30-day trial

Maps speech-recognizer states and pointer interaction to the button's theme states.

Definition

Namespace:Telerik.WinControls.UI.SpeechToTextButton

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class SpeechToTextButtonStateManager : ItemStateManagerFactory

Inheritance: objectItemStateManagerFactoryBaseItemStateManagerFactorySpeechToTextButtonStateManager

Constructors

C#
public SpeechToTextButtonStateManager()

Methods

Adds the listening and error visuals to the default visible states used by themes.

C#
protected override void AddDefaultVisibleStates(ItemStateManager sm)
Parameters:smItemStateManager

The state manager that receives the default visible states.

Overrides: ItemStateManagerFactory.AddDefaultVisibleStates(ItemStateManager)

Creates hover and press states, plus default, Listening, and Error states for the NotInitialized, Listening, and Faulted recognizer states.

C#
protected override StateNodeBase CreateEnabledStates()
Returns:

StateNodeBase

The state tree used to select the button's enabled visual states.

Overrides: ItemStateManagerFactory.CreateEnabledStates()