New to Telerik UI for WPFStart a free 30-day trial

This class represents a tool window.

Definition

Namespace:Telerik.Windows.Controls.Docking

Assembly:Telerik.Windows.Controls.Docking.dll

Syntax:

C#
public class ToolWindow : WindowBase, INotifyLayoutChange, IDragAware

Inheritance: objectWindowBaseToolWindow

Implements: IDragAwareINotifyLayoutChange

Inherited Members WindowBase.IsModalPropertyWindowBase.IsOpenPropertyWindowBase.IsResizingPropertyWindowBase.IsDraggingPropertyWindowBase.IsActiveWindowPropertyWindowBase.IsInActiveStatePropertyWindowBase.IsTopmostPropertyWindowBase.CaptionHeightPropertyWindowBase.ResizeBorderPropertyWindowBase.LeftPropertyWindowBase.TopPropertyWindowBase.WindowStatePropertyWindowBase.ResizeModePropertyWindowBase.CanClosePropertyWindowBase.CanMovePropertyWindowBase.SizeToContentPropertyWindowBase.HideMinimizeButtonPropertyWindowBase.HideMaximizeButtonPropertyWindowBase.CornerRadiusPropertyWindowBase.Close()WindowBase.GetZIndex()WindowBase.BringToFront()WindowBase.GetNormalSizeAndPosition()WindowBase.ShouldActivateOnShow()WindowBase.ShouldShowInTaskSwitcher()WindowBase.ShouldActivate()WindowBase.ChangeVisualState()WindowBase.ShowWindow(bool)WindowBase.OnLocationChanged(EventArgs)WindowBase.OnWindowStateChanged(EventArgs)WindowBase.OnHostCreated(HostWindowCreatedEventArgs)WindowBase.OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)WindowBase.GetApplicationSize()WindowBase.OnLayoutChangeEnded()WindowBase.OnLayoutChangeStarted()WindowBase.CloseWithoutEventsAndAnimations()WindowBase.OnCloseAnimationFinished()WindowBase.OnShowAnimationFinished()WindowBase.OnRootVisualSizeChanged()WindowBase.GetWindowStartupLocation()WindowBase.OnDeactivated(EventArgs)WindowBase.ShouldSystemMenuOnRightClick()WindowBase.IsModalWindowBase.IsOpenWindowBase.IsTopmostWindowBase.CaptionHeightWindowBase.ResizeBorderWindowBase.LeftWindowBase.TopWindowBase.IsResizingWindowBase.IsDraggingWindowBase.IsLayoutChangingWindowBase.WindowStateWindowBase.ResizeModeWindowBase.CanCloseWindowBase.CanMoveWindowBase.IsActiveWindowWindowBase.IsInActiveStateWindowBase.CornerRadiusWindowBase.SizeToContentWindowBase.HideMaximizeButtonWindowBase.HideMinimizeButtonWindowBase.OwnerWindowBase.ActivatedWindowBase.DeactivatedWindowBase.LayoutChangeEndedWindowBase.LayoutChangeStartedWindowBase.LocationChangedWindowBase.WindowStateChanged...

Constructors

Initializes a new instance of the ToolWindow class.

C#
public ToolWindow()

Fields

IsSelectedProperty

DependencyProperty

Identifies the IsSelected dependency property.

C#
public static readonly DependencyProperty IsSelectedProperty

Properties

Gets or sets a value indicating whether this pane is selected.

C#
public bool IsSelected { get; set; }
Property Value:

True if this pane is active; otherwise, false.

Methods

Updates the visual state of the control.

C#
protected override void ChangeVisualState(bool useTransitions)
Parameters:useTransitionsbool

Indicates whether transitions should be used.

Overrides: WindowBase.ChangeVisualState(bool)

Checks whether the window can be closed. This method doesn't consider the CanClose property, but checked for some other kind of constraints.

C#
protected override bool CheckCanClose()
Returns:

bool

True if the window can be changed; false otherwise.

Overrides: WindowBase.CheckCanClose()

GetWindowOwner()

ContentControl

C#
protected override ContentControl GetWindowOwner()
Returns:

ContentControl

Overrides: WindowBase.GetWindowOwner()

C#
protected override nint GetWindowOwnerHandle()
Returns:

nint

Overrides: WindowBase.GetWindowOwnerHandle()

Raises the event. This method is called when the window is activated.

C#
protected override void OnActivated(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Overrides: WindowBase.OnActivated(EventArgs)

C#
protected override void OnClosed()

Overrides: WindowBase.OnClosed()

C#
protected override bool OnClosing()
Returns:

bool

Overrides: WindowBase.OnClosing()

Called when the value of the property changes.

C#
protected override void OnContentChanged(object oldContent, object newContent)
Parameters:oldContentobject

The old value of the property.

newContentobject

The new value of the property.

Create the automation peer for this class.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Overrides: WindowBase.OnCreateAutomationPeer()

C#
protected override Rect OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, bool isResize)
Parameters:globalMousePositionPointinitialRectRectdestinationRectRectisResizeboolReturns:

Rect

Overrides: WindowBase.OnDragDelta(Point, Rect, Rect, bool)

C#
protected override void OnDragEnd(Point globalMousePosition, bool isCancel, bool isResize)
Parameters:globalMousePositionPointisCancelboolisResizebool

Overrides: WindowBase.OnDragEnd(Point, bool, bool)

C#
protected override void OnDragStart(Point globalMousePosition, bool isResize)
Parameters:globalMousePositionPointisResizebool

Overrides: WindowBase.OnDragStart(Point, bool)

C#
protected override void OnGotFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs

Raises the event and sets from the active theme.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called before the event occurs.

C#
protected override void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

The data for the event.

Raises the LayoutChangeEnded event of the RadDocking and the WindowBase.

C#
protected override void OnLayoutChangeEnded(EventArgs args)
Parameters:argsEventArgs

The System.EventArgs instance containing the event data.

Overrides: WindowBase.OnLayoutChangeEnded(EventArgs)

Raises the LayoutChangeStarted event of the RadDocking and the WindowBase.

C#
protected override void OnLayoutChangeStarted(EventArgs args)
Parameters:argsEventArgs

The System.EventArgs instance containing the event data.

Overrides: WindowBase.OnLayoutChangeStarted(EventArgs)

C#
protected override void OnRightMouseButtonUp()

Overrides: WindowBase.OnRightMouseButtonUp()

Resets the theme.

C#
public void ResetTheme()
C#
protected override bool ShouldFocusOnActivate()
Returns:

bool

Overrides: WindowBase.ShouldFocusOnActivate()

Extension Methods