Class
RadAIPromptButton

A button that displays a RadAIPrompt as the child of a Popup element.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ConversationalUI.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("ConversationalUI")]
public class RadAIPromptButton : RadButton

Inheritance: objectRadButtonRadAIPromptButton

Inherited Members RadButton.HoverDelayPropertyRadButton.CornerRadiusPropertyRadButton.IsBackgroundVisiblePropertyRadButton.ActivateEventRadButton.HoverEventRadButton.OnActivate()RadButton.OnHover()RadButton.OnLostFocus(RoutedEventArgs)RadButton.OnGotFocus(RoutedEventArgs)RadButton.OnMouseEnter(MouseEventArgs)RadButton.OnMouseLeave(MouseEventArgs)RadButton.OnMouseMove(MouseEventArgs)RadButton.OnIsPressedChanged(DependencyPropertyChangedEventArgs)RadButton.HoverDelayRadButton.CornerRadiusRadButton.IsBackgroundVisibleRadButton.ActivateRadButton.Hover

Constructors

RadAIPromptButton()

Initializes a new instance of the RadAIPromptButton class.

Declaration

cs-api-definition
public RadAIPromptButton()

Fields

AIPromptProperty

Identifies the AIPrompt dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AIPromptProperty

Field Value

DependencyProperty

IsInPopupProperty

Identifies the IsInPopup dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsInPopupProperty

Field Value

DependencyProperty

IsPopupOpenProperty

Identifies the IsPopupOpen dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsPopupOpenProperty

Field Value

DependencyProperty

PopupHeightProperty

Identifies the PopupHeight dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PopupHeightProperty

Field Value

DependencyProperty

PopupHorizontalOffsetProperty

Identifies the PopupHorizontalOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PopupHorizontalOffsetProperty

Field Value

DependencyProperty

PopupVerticalOffsetProperty

Identifies the PopupVerticalOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PopupVerticalOffsetProperty

Field Value

DependencyProperty

PopupWidthProperty

Identifies the PopupWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PopupWidthProperty

Field Value

DependencyProperty

Properties

AIPrompt

Gets or sets the RadAIPrompt instance that will be the child of the Popup control.

Declaration

cs-api-definition
public RadAIPrompt AIPrompt { get; set; }

Property Value

RadAIPrompt

IsPopupOpen

Gets or sets a boolean value indicating whether the Popup hosting the RadAIPrompt is open.

Declaration

cs-api-definition
public bool IsPopupOpen { get; set; }

Property Value

bool

PopupHeight

Gets or sets a double value for Height of the Popup hosting the RadAIPrompt.

Declaration

cs-api-definition
public double PopupHeight { get; set; }

Property Value

double

PopupHorizontalOffset

Gets or sets a double value for HorizontalOffset of the Popup hosting the RadAIPrompt.

Declaration

cs-api-definition
public double PopupHorizontalOffset { get; set; }

Property Value

double

PopupVerticalOffset

Gets or sets a double value for VerticalOffset of the Popup hosting the RadAIPrompt.

Declaration

cs-api-definition
public double PopupVerticalOffset { get; set; }

Property Value

double

PopupWidth

Gets or sets a double value for Width of the Popup hosting the RadAIPrompt.

Declaration

cs-api-definition
public double PopupWidth { get; set; }

Property Value

double

Methods

GetIsInPopup(DependencyObject)

Gets the value of IsInPopup attached property.

Declaration

cs-api-definition
public static bool GetIsInPopup(DependencyObject obj)

Parameters

obj

DependencyObject

The object to get the property for.

Returns

bool

OnApplyTemplate()

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call. .

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides RadButton.OnApplyTemplate()

OnClick()

Invoke the base OnClick and execute the associated Command.

Declaration

cs-api-definition
protected override void OnClick()

Overrides RadButton.OnClick()

OnCreateAutomationPeer()

Returns an automation peer for this RadAIPromptButton.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides RadButton.OnCreateAutomationPeer()

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

Overrides RadButton.OnInitialized(EventArgs)

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()