RadTaskDialogButton
A class that represents a button of RadTaskDialogPage
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTaskDialogButton : LightVisualButtonElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IRadTaskDialogControl, IRadTaskDialogPageFocusableElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementLightVisualButtonElementRadTaskDialogButton...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadTaskDialogButton class.
public RadTaskDialogButton()
Initializes a new instance of the RadTaskDialogButton class.
Fields
Identifies the Focused property used to track task-dialog button focus.
public static readonly RadProperty FocusedProperty
Properties
Gets a RadTaskDialogButton, which indicates "Abort" action.
public static RadTaskDialogButton Abort { get; }
Gets or sets a value indicating, whether to close the RadTaskDialog when the button is clicked.
public bool AllowCloseDialog { get; set; }
Gets the bound RadTaskDialogPage.
public RadTaskDialogPage BoundPage { get; }
Implements:
Gets a RadTaskDialogButton, which indicates "Cancel" action.
public static RadTaskDialogButton Cancel { get; }
Gets a RadTaskDialogButton, which indicates "Close" action.
public static RadTaskDialogButton Close { get; }
Gets a RadTaskDialogButton, which indicates "Continue" action.
public static RadTaskDialogButton Continue { get; }
Gets or sets a value indicating whether to draw focus cues when the button is focused.
public bool DrawFocusCues { get; set; }
Gets or sets a value indicating whether the button is focused.
public bool Focused { get; set; }
Implements:
Gets a RadTaskDialogButton, which indicates "Help" action.
public static RadTaskDialogButton Help { get; }
Gets a RadTaskDialogButton, which indicates "Ignore" action.
public static RadTaskDialogButton Ignore { get; }
Gets a RadTaskDialogButton, which indicates "No" action.
public static RadTaskDialogButton No { get; }
Gets a RadTaskDialogButton, which indicates "OK" action.
public static RadTaskDialogButton OK { get; }
Gets a RadTaskDialogButton, which indicates "Retry" action.
public static RadTaskDialogButton Retry { get; }
Gets or sets a value indicating whether to display a shield icon.
public bool ShowShieldIcon { get; set; }
Gets a RadTaskDialogButton, which indicates "TryAgain" action.
public static RadTaskDialogButton TryAgain { get; }
Gets a RadTaskDialogButton, which indicates "Yes" action.
public static RadTaskDialogButton Yes { get; }
Methods
Returns the hash code of the object.
Sets the task-dialog button's default appearance, spacing, and dialog-closing behavior. Focus cues are disabled until requested through DrawFocusCues.
protected override void InitializeFields()
Overrides:
Raises the base click behavior and notifies the containing page that this button was activated.
protected override void OnClick(EventArgs e)
The event data for the click.
Overrides:
Updates the containing page's focused element when the button receives a mouse press.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event data.
Overrides:
Paints focus cues after the child elements when the button is both focused and configured to show them.
protected override void PostPaintChildren(IGraphics graphics, Rectangle clipRectangle, float angle, SizeF scale)
The graphics context used to paint the children and focus cues.
clipRectangleRectangleThe clipping rectangle for painting.
anglefloatThe rotation angle applied to the element.
scaleSizeFThe scaling applied to the element.
Overrides:
Operators
The != operator returns a value whether two RadTaskDialogButton objects are not equal.
public static bool operator !=(RadTaskDialogButton b1, RadTaskDialogButton b2)
First button to be compared.
b2RadTaskDialogButtonSecond button to be compared.
Returns:Whether the two objects are not equal.
The == operator returns a value whether two RadTaskDialogButton objects are equal.
public static bool operator ==(RadTaskDialogButton b1, RadTaskDialogButton b2)
First button to be compared.
b2RadTaskDialogButtonSecond button to be compared.
Returns:Whether the two objects are equal.