Click or drag to resize
RadWindow Class
This class represents an interactive window and provides static methods for showing standard dialog windows - Alert, Confirm and Prompt.
Inheritance Hierarchy

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Navigation (in Telerik.Windows.Controls.Navigation.dll) Version: 2017.3.913.40 (2017.3.913.40)
Syntax
public class RadWindow : WindowBase, IThemable

The RadWindow type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleRadWindow
Initializes a new instance of the RadWindow class.
Top
Methods
  NameDescription
Public methodStatic memberAlert(Object)
Opens an Alert modal window.
Public methodStatic memberAlert(DialogParameters)
Opens an Alert modal window.
Public methodStatic memberAlert(Object, EventHandlerWindowClosedEventArgs)
Opens an Alert modal window.
Public methodBringToFront
Attempts to bring the WindowBase over any other WindowBases except topmost.
(Inherited from WindowBase.)
Protected methodChangeVisualState
Updates the visual state of the control.
(Inherited from WindowBase.)
Protected methodChangeVisualState(Boolean)
Updates the visual state of the control.
(Overrides WindowBaseChangeVisualState(Boolean).)
Protected methodCheckCanClose
Checks whether the window can be closed. This method doesn't consider the CanClose property, but checked for some other kind of constraints.
(Inherited from WindowBase.)
Public methodCode exampleClose
Manually closes WindowBase.
(Inherited from WindowBase.)
Protected methodCloseWithoutEventsAndAnimations
Closes the Window instantly and the closing cannot be interrupted.
(Inherited from WindowBase.)
Public methodStatic memberConfigureModal
Public methodStatic memberConfirm(DialogParameters)
Opens a Confirm modal window.
Public methodStatic memberConfirm(Object, EventHandlerWindowClosedEventArgs)
Opens a Confirm modal window.
Protected methodGetApplicationSize
Gets the application size depending on the platform.
(Inherited from WindowBase.)
Public methodGetNormalSizeAndPosition
Gets the size and position of the WindowBase in its normal state.
(Inherited from WindowBase.)
Public methodStatic memberGetParentRadWindow
This walks the visual tree for a parent of a specific type.
Public methodStatic memberGetResponseButton
Gets the response button.
Protected methodGetWindowOwner
Protected methodGetWindowOwnerHandle
(Inherited from WindowBase.)
Protected methodGetWindowStartupLocation
Public methodGetZIndex
(Inherited from WindowBase.)
Protected methodOnActivated
Raises the [E:Activated] event. This method is called when the window is activated.
(Inherited from WindowBase.)
Public methodOnApplyTemplate
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
(Overrides FrameworkElementOnApplyTemplate.)
Protected methodOnCloseAnimationFinished
(Inherited from WindowBase.)
Protected methodOnClosed
Protected methodOnClosed(WindowClosedEventArgs)
Raises the [E:Closed] event.
Protected methodOnClosing
Protected methodOnCreateAutomationPeer
Create the automation peer for this class.
(Overrides WindowBaseOnCreateAutomationPeer.)
Protected methodOnDeactivated
Raises the [E:Deactivated] event. This method is called when the window is deactivated.
(Inherited from WindowBase.)
Protected methodOnDragDelta
(Inherited from WindowBase.)
Protected methodOnDragEnd
(Inherited from WindowBase.)
Protected methodOnDragStart
(Inherited from WindowBase.)
Protected methodOnGotFocus
Called before the GotFocus event occurs.
(Overrides FrameworkElementOnGotFocus(RoutedEventArgs).)
Protected methodOnGotKeyboardFocus
Invoked when an unhandled System.Windows.Input.Keyboard.GotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
(Inherited from WindowBase.)
Protected methodOnHostCreated
Raises the [E:HostCreated] event.
(Overrides WindowBaseOnHostCreated(HostWindowCreatedEventArgs).)
Protected methodOnInitialized
Raises the Initialized event and sets DefaultStyleKey from the active theme.
(Overrides FrameworkElementOnInitialized(EventArgs).)
Protected methodOnKeyDown
Called before the KeyDown event occurs.
(Overrides UIElementOnKeyDown(KeyEventArgs).)
Protected methodOnLayoutChangeEnded
(Inherited from WindowBase.)
Protected methodOnLayoutChangeEnded(EventArgs)
Raises the [E:LayoutChangeEnded] event.
(Inherited from WindowBase.)
Protected methodOnLayoutChangeStarted
(Inherited from WindowBase.)
Protected methodOnLayoutChangeStarted(EventArgs)
Raises the [E:LayoutChangeStarted] event.
(Inherited from WindowBase.)
Protected methodOnLocationChanged
Raises the [E:LocationChanged] event.
(Inherited from WindowBase.)
Protected methodOnLostFocus
Called before the LostFocus event occurs.
(Overrides UIElementOnLostFocus(RoutedEventArgs).)
Protected methodOnPreviewClosed
Protected methodOnPreviewClosed(WindowPreviewClosedEventArgs)
Raises the [E:PreviewClose] event.
Protected methodOnRightMouseButtonUp
(Inherited from WindowBase.)
Protected methodOnRootVisualSizeChanged
(Inherited from WindowBase.)
Protected methodOnShowAnimationFinished
(Inherited from WindowBase.)
Protected methodOnWindowStateChanged
Raises the [E:WindowStateChanged] event.
(Overrides WindowBaseOnWindowStateChanged(EventArgs).)
Public methodStatic memberPrompt(DialogParameters)
Opens a Prompt modal window.
Public methodStatic memberPrompt(Object, EventHandlerWindowClosedEventArgs)
Opens a Prompt modal window.
Public methodStatic memberPrompt(Object, EventHandlerWindowClosedEventArgs, String)
Opens a Prompt modal window.
Public methodResetTheme
Resets the theme.
Public methodStatic memberSetResponseButton
Sets the response button.
Protected methodShouldActivateOnShow
(Inherited from WindowBase.)
Protected methodShouldFocusOnActivate
Protected methodShouldSystemMenuOnRightClick
When overridden in the derived class this methods returns value that determines whether the system menu should be shown when the user right-clicks the header of the WindowBase control.
(Inherited from WindowBase.)
Public methodCode exampleShow
Opens RadWindow in case it hasn't been already opened.
Public methodCode exampleShowDialog
Opens modal RadWindow in case it hasn't been already opened.
Protected methodShowWindow
Shows the window either modally or not. This method should be used in the subclasses to open the window.
(Inherited from WindowBase.)
Top
Extension Methods
  NameDescription
Public Extension MethodChildrenOfTypeT
Gets all child elements recursively from the visual tree by given type.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodClearIfNoBindingAndSet
Clears if set.
(Defined by CommonExtensions.)
Public Extension MethodClearIfSet
Clears the property if a value has been set.
(Defined by CommonExtensions.)
Public Extension MethodDeserializePrimitives
Deserializes some primitive properties of a control.
(Defined by SerializationExtensions.)
Public Extension MethodEnableLayoutRounding (Defined by LayoutRoundingHelperExtensions.)
Public Extension MethodFindChildByTypeT
Finds child element of the specified type. Uses breadth-first search.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodGetAssociatedInlineUIContainer (Defined by ExtensionMethods.)
Public Extension MethodGetAssociatedLayoutBox (Defined by ExtensionMethods.)
Public Extension MethodGetBaseControlItemStatus
Gets a string that communicates the visual status of a Control.
(Defined by AutomationExtensions.)
Public Extension MethodGetBoundsRelativeTo
Gets the bounds relative to the current framework element.
(Defined by ExtensionMethods.)
Public Extension MethodGetGlobalMousePosition
(Defined by WindowHost.)
Public Extension MethodGetParents
Enumerates through element's parents in the visual tree.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodGetVisualParentT
Searches up in the visual tree for parent element of the specified type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsAncestorOf(DependencyObject)Overloaded.
Determines whether the element is ancestor of the current UI element.
(Defined by ExtensionMethods.)
Public Extension MethodIsAncestorOf(DependencyObject)Overloaded.
Determines whether the element is an ancestor of the descendant.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsKeyboardFocusWithin
Determines whether keyboard focus is within the current UI element.
(Defined by KeyboardHelper.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by DependencyObjectExtensions.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by CommonExtensions.)
Public Extension MethodParentOfTypeT
Gets the parent element from the visual tree by given type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodSerializePrimitives
Serializes some primitive properties of a control.
(Defined by SerializationExtensions.)
Public Extension MethodSetAssociatedLayoutBox (Defined by ExtensionMethods.)
Public Extension MethodSetIfDifferent
Sets the value of the dependencyProperty property if it's hasn't that value currently.
(Defined by CommonExtensions.)
Public Extension MethodSetLayout
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSetLocation(Point)Overloaded.
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSetLocation(Double, Double)Overloaded.
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSlideInOverloaded.
Slides the given element into view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideIn(TimeSpan)Overloaded.
Slides the given element into view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideOutOverloaded.
Slides the given element out of view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideOut(TimeSpan)Overloaded.
Slides the given element out of view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodTranslate(NullableDouble, NullableDouble, NullableDouble, NullableDouble, TimeSpan)Overloaded.
Translates the target element as requested by the parameters.
(Defined by CalendarAnimation.)
Public Extension MethodTranslate(NullableDouble, NullableDouble, NullableDouble, NullableDouble, TimeSpan, Action)Overloaded.
Translates the target element as requested by the parameters and executes the action request.
(Defined by CalendarAnimation.)
Top
Fields
  NameDescription
Public fieldStatic memberBorderBackgroundProperty
Identifies the BorderBackground dependency property.
Public fieldStatic memberDialogResultProperty
Identifies the DialogResult dependency property.
Public fieldStatic memberIconProperty
Identifies the Icon dependency property.
Public fieldStatic memberIconTemplateProperty
Identifies the IconTemplate dependency property.
Public fieldStatic memberIsRestrictedProperty
Identifies the IsRestricted Property.
Public fieldStatic memberIsRestrictedWhenMaximizedProperty
Identifies the IsRestrictedWhenMaximized Property.
Public fieldStatic memberModalBackgroundProperty
Identifies the ModalBackground dependency property.
Public fieldStatic memberPromptResultProperty
Identifies the PromptResult dependency property.
Public fieldStatic memberResponseButtonProperty
Identifies the ResponseButton Property.
Public fieldStatic memberRestoreMinimizedLocationProperty
Identifies the RestoreMinimizedLocation Property.
Public fieldStatic memberRestrictedAreaMarginProperty
Identifies the RestrictedAreaMargin Property.
Public fieldStatic memberWindowStartupLocationProperty
Identifies the WindowStartupLocation dependency property.
Top
Properties
  NameDescription
Public propertyBorderBackground
Gets or sets a brush to be used to draw the title of RadWindow. This is a dependency property.
Public propertyCanClose
Gets or sets whether WindowBase can be closed. This is a dependency property.
(Inherited from WindowBase.)
Public propertyCanMove
Gets or sets whether WindowBase can be dragged. This is a dependency property.
(Inherited from WindowBase.)
Public propertyCaptionHeight
The extent of the top of the window to treat as the caption.
(Inherited from WindowBase.)
Public propertyStatic memberDefaultSizeRatio
Gets a size ratio when the window has infinity size and it is not restricted. The window size depends on root size and the default ratio.
Public propertyDialogResult
Gets or sets a DialogResult value for the RadWindow. This is a dependency property.
Public propertyHideMaximizeButton
Gets or sets the visibility of the Maximize button.
(Inherited from WindowBase.)
Public propertyHideMinimizeButton
Gets or sets the visibility of the Minimize button.
(Inherited from WindowBase.)
Public propertyIcon
Gets or sets the Icon image to appear in the RadWindow title bar. This is a dependency property.
Public propertyIconTemplate
Gets or sets the IconTemplate property. This is a dependency property.
Public propertyIsActiveWindow
Gets a value indicating whether this instance is active. This is a dependency property.
(Inherited from WindowBase.)
Public propertyIsDragging
Gets a value indicating whether this instance is dragging. This is a dependency property.
(Inherited from WindowBase.)
Public propertyIsInActiveState
Gets a value indicating whether this instance should appear active. It is not necessary equal to IsActiveWindow. This is a read only dependency property.
(Inherited from WindowBase.)
Public propertyIsLayoutChanging
Gets a value indicating whether this instance is layout changing.
(Inherited from WindowBase.)
Public propertyIsModal
Gets a value that represents whether the WindowBase is modal. This is a dependency property.
(Inherited from WindowBase.)
Public propertyIsOpen
Gets a value that represents whether the WindowBase is open. This is a dependency property.
(Inherited from WindowBase.)
Public propertyIsResizing
Gets a value indicating whether this instance is resizing. This is a dependency property.
(Inherited from WindowBase.)
Public propertyIsRestricted
Gets or sets a value indicating whether this instance is restricted.
Public propertyIsRestrictedWhenMaximized
Gets or sets whether when maximized the window to be restricted.
Public propertyIsTopmost
Gets or sets whether the WindowBase is on top.
(Inherited from WindowBase.)
Public propertyLeft
Gets or sets a value that represents the distance between the left side of an element and the left side of the page. This is a dependency property.
(Inherited from WindowBase.)
Public propertyModalBackground
Gets or sets a brush for the modal background of RadWindow. This is a dependency property.
Public propertyOwner
Gets or sets the Owner of the WindowBase.
(Inherited from WindowBase.)
Public propertyPromptResult
Gets or sets a PromptResult value for the RadWindow. This is a dependency property.
Public propertyResizeBorder
Get the bounds of the resize grips on the Window.
(Inherited from WindowBase.)
Public propertyResizeMode
Gets or sets a ResizeMode value for the WindowBase. This is a dependency property.
(Inherited from WindowBase.)
Public propertyRestoreMinimizedLocation
Gets or sets the value which determines whether the window preserves its size and location when WindowState property is changed. This is a dependency property.
Public propertyRestrictedAreaMargin
Gets or sets the restricted area margin.
Public propertySizeToContent
The value of this property is ignored if the Width and Height properties are set.
(Inherited from WindowBase.)
Public propertyTop
Gets or sets a value that represents the distance between the top of an element and the top of the page. This is a dependency property.
(Inherited from WindowBase.)
Public propertyWindowStartupLocation
Gets or sets a WindowStartupLocation value for the RadWindow. This is a dependency property.
Public propertyWindowState
Gets or sets a WindowBase value for the WindowBase. This is a dependency property.
(Inherited from WindowBase.)
Top
Attached Properties
  NameDescription
Public attached propertyResponseButton
Identifies the ResponseButton Property.
Top
Events
  NameDescription
Public eventActivated
Occurs when the Window is activated.
(Inherited from WindowBase.)
Public eventClosed
Occurs when the RadWindow is closed.
Public eventDeactivated
Occurs when the Window is deactivated.
(Inherited from WindowBase.)
Public eventHostCreated
Occurs when the "Host" Window instance is created.
Public eventLayoutChangeEnded
Occurs when a layout change is ended.
(Inherited from WindowBase.)
Public eventLayoutChangeStarted
Occurs when a layout change is started.
(Inherited from WindowBase.)
Public eventLocationChanged
Occurs when the value of a Left or Top changes.
(Inherited from WindowBase.)
Public eventPreviewClosed
Occurs when the RadWindow is closing.
Public eventWindowStateChanged
Occurs when the value of a WindowState changes.
(Inherited from WindowBase.)
Top
See Also
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsContentControl
                System.Windows.ControlsHeaderedContentControl
                  Telerik.Windows.ControlsWindowBase
                    Telerik.Windows.ControlsRadWindow
                      Telerik.Windows.Controls.Diagrams.ExtensionsRadDiagramPrintPreviewDialog
                      Telerik.Windows.Controls.FixedDocumentViewersUI.DialogsFindDialog
                      Telerik.Windows.Controls.FixedDocumentViewersUI.DialogsSignaturePropertiesDialog
                      Telerik.Windows.Controls.FixedDocumentViewersUI.DialogsSignSignatureDialog
                      Telerik.Windows.Controls.RichTextBoxUI.DialogsModifyMultiLevelListDialog
                      Telerik.Windows.Controls.RichTextBoxUI.DialogsNewCaptionLabelDialog
                      Telerik.Windows.Controls.RichTextBoxUI.DialogsRadRichTextBoxWindow
                      Telerik.Windows.ControlsSchedulerWindow
                      Telerik.Windows.Documents.ProofingEditCustomDictionaryDialog
                      Telerik.Windows.Documents.ProofingSpellCheckAllAtOnceWindow
                      Telerik.Windows.Documents.ProofingSpellCheckWordByWordWindow