Click or drag to resize
WindowBase Methods

The WindowBase type exposes the following members.

Methods
  NameDescription
Public methodBringToFront
Attempts to bring the WindowBase over any other WindowBases except topmost.
Protected methodChangeVisualState
Updates the visual state of the control.
Protected methodChangeVisualState(Boolean)
Updates the visual state of the control.
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.
Public methodCode exampleClose
Manually closes WindowBase.
Protected methodCloseWithoutEventsAndAnimations
Closes the Window instantly and the closing cannot be interrupted.
Protected methodGetApplicationSize
Gets the application size depending on the platform.
Public methodGetNormalSizeAndPosition
Gets the size and position of the WindowBase in its normal state.
Protected methodGetWindowOwner
Protected methodGetWindowOwnerHandle
Protected methodGetWindowStartupLocation
Public methodGetZIndex
Protected methodOnActivated
Raises the [E:Activated] event. This method is called when the window is activated.
Protected methodOnCloseAnimationFinished
Protected methodOnClosed
Protected methodOnClosing
Protected methodOnCreateAutomationPeer
Create the automation peer for this class.
(Overrides UIElementOnCreateAutomationPeer.)
Protected methodOnDeactivated
Raises the [E:Deactivated] event. This method is called when the window is deactivated.
Protected methodOnDragDelta
Protected methodOnDragEnd
Protected methodOnDragStart
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.
(Overrides UIElementOnGotKeyboardFocus(KeyboardFocusChangedEventArgs).)
Protected methodOnHostCreated
Raises the [E:HostCreated] event.
Protected methodOnLayoutChangeEnded
Protected methodOnLayoutChangeEnded(EventArgs)
Raises the [E:LayoutChangeEnded] event.
Protected methodOnLayoutChangeStarted
Protected methodOnLayoutChangeStarted(EventArgs)
Raises the [E:LayoutChangeStarted] event.
Protected methodOnLocationChanged
Raises the [E:LocationChanged] event.
Protected methodOnRightMouseButtonUp
Protected methodOnRootVisualSizeChanged
Protected methodOnShowAnimationFinished
Protected methodOnWindowStateChanged
Raises the [E:WindowStateChanged] event.
Protected methodShouldActivateOnShow
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.
Protected methodShowWindow
Shows the window either modally or not. This method should be used in the subclasses to open the window.
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
See Also