skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ToolWindow

This class represents a tool window.

Inheritance
System.Object
WindowBase
ToolWindow
Inherited Members
WindowBase.IsModalProperty
WindowBase.IsOpenProperty
WindowBase.IsResizingProperty
WindowBase.IsDraggingProperty
WindowBase.IsActiveWindowProperty
WindowBase.IsInActiveStateProperty
WindowBase.IsTopmostProperty
WindowBase.CaptionHeightProperty
WindowBase.ResizeBorderProperty
WindowBase.LeftProperty
WindowBase.TopProperty
WindowBase.WindowStateProperty
WindowBase.ResizeModeProperty
WindowBase.CanCloseProperty
WindowBase.CanMoveProperty
WindowBase.SizeToContentProperty
WindowBase.HideMinimizeButtonProperty
WindowBase.HideMaximizeButtonProperty
WindowBase.CornerRadiusProperty
WindowBase.Close()
WindowBase.GetZIndex()
WindowBase.BringToFront()
WindowBase.GetNormalSizeAndPosition()
WindowBase.IDragAware.OnDragStart(Point, Boolean)
WindowBase.IDragAware.OnDragEnd(Point, Boolean, Boolean)
WindowBase.IDragAware.OnDragDelta(Point, Rect, Rect, Boolean)
WindowBase.ShouldActivateOnShow()
WindowBase.ShouldShowInTaskSwitcher()
WindowBase.ShouldActivate()
WindowBase.ChangeVisualState()
WindowBase.ShowWindow(Boolean)
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.IsModal
WindowBase.IsOpen
WindowBase.IsTopmost
WindowBase.CaptionHeight
WindowBase.ResizeBorder
WindowBase.Left
WindowBase.Top
WindowBase.IsResizing
WindowBase.IsDragging
WindowBase.IsLayoutChanging
WindowBase.WindowState
WindowBase.ResizeMode
WindowBase.CanClose
WindowBase.CanMove
WindowBase.IsActiveWindow
WindowBase.IsInActiveState
WindowBase.CornerRadius
WindowBase.SizeToContent
WindowBase.HideMaximizeButton
WindowBase.HideMinimizeButton
WindowBase.Owner
WindowBase.Activated
WindowBase.Deactivated
WindowBase.LayoutChangeEnded
WindowBase.LayoutChangeStarted
WindowBase.LocationChanged
WindowBase.WindowStateChanged
Namespace: Telerik.Windows.Controls.Docking
Assembly: Telerik.Windows.Controls.Docking.dll

Syntax

public class ToolWindow : WindowBase, INotifyLayoutChange, IWindowDragAware, IDragAware, IClickAware

Constructors

ToolWindow()

Initializes a new instance of the ToolWindow class.

Declaration
public ToolWindow()

Fields

IsSelectedProperty

Identifies the IsSelected dependency property.

Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
System.Windows.DependencyProperty

Properties

IsSelected

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

Declaration
public bool IsSelected { get; set; }
Property Value
System.Boolean

True if this pane is active; otherwise, false.

Methods

ChangeVisualState(Boolean)

Updates the visual state of the control.

Declaration
protected override void ChangeVisualState(bool useTransitions)
Parameters
System.Boolean useTransitions

Indicates whether transitions should be used.

Overrides
WindowBase.ChangeVisualState(Boolean)

CheckCanClose()

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

Declaration
protected override bool CheckCanClose()
Returns
System.Boolean

True if the window can be changed; false otherwise.

Overrides
WindowBase.CheckCanClose()

GetWindowOwner()

Declaration
protected override ContentControl GetWindowOwner()
Returns
System.Windows.Controls.ContentControl

Overrides
WindowBase.GetWindowOwner()

GetWindowOwnerHandle()

Declaration
protected override IntPtr GetWindowOwnerHandle()
Returns
System.IntPtr

Overrides
WindowBase.GetWindowOwnerHandle()

OnActivated(EventArgs)

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

Declaration
protected override void OnActivated(EventArgs e)
Parameters
System.EventArgs e

The System.EventArgs instance containing the event data.

Overrides
WindowBase.OnActivated(EventArgs)

OnClosed()

Declaration
protected override void OnClosed()
Overrides
WindowBase.OnClosed()

OnClosing()

Declaration
protected override bool OnClosing()
Returns
System.Boolean

Overrides
WindowBase.OnClosing()

OnContentChanged(Object, Object)

Called when the value of the System.Windows.Controls.ContentControl.Content property changes.

Declaration
protected override void OnContentChanged(object oldContent, object newContent)
Parameters
System.Object oldContent

The old value of the System.Windows.Controls.ContentControl.Content property.

System.Object newContent

The new value of the System.Windows.Controls.ContentControl.Content property.

OnCreateAutomationPeer()

Create the automation peer for this class.

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer

Overrides
WindowBase.OnCreateAutomationPeer()

OnDragDelta(Point, Rect, Rect, Boolean)

Declaration
protected override Rect OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, bool isResize)
Parameters
System.Windows.Point globalMousePosition

System.Windows.Rect initialRect

System.Windows.Rect destinationRect

System.Boolean isResize

Returns
System.Windows.Rect

Overrides
WindowBase.OnDragDelta(Point, Rect, Rect, Boolean)

OnDragEnd(Point, Boolean, Boolean)

Declaration
protected override void OnDragEnd(Point globalMousePosition, bool isCancel, bool isResize)
Parameters
System.Windows.Point globalMousePosition

System.Boolean isCancel

System.Boolean isResize

Overrides
WindowBase.OnDragEnd(Point, Boolean, Boolean)

OnDragStart(Point, Boolean)

Declaration
protected override void OnDragStart(Point globalMousePosition, bool isResize)
Parameters
System.Windows.Point globalMousePosition

System.Boolean isResize

Overrides
WindowBase.OnDragStart(Point, Boolean)

OnGotFocus(RoutedEventArgs)

Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs e

OnInitialized(EventArgs)

Raises the System.Windows.FrameworkElement.Initialized event and sets System.Windows.FrameworkElement.DefaultStyleKey from the active theme.

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

The System.Windows.RoutedEventArgs that contains the event data.

OnKeyDown(KeyEventArgs)

Called before the System.Windows.UIElement.KeyDown event occurs.

Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
System.Windows.Input.KeyEventArgs e

The data for the event.

OnLayoutChangeEnded(EventArgs)

Raises the LayoutChangeEnded event of the RadDocking and the WindowBase.

Declaration
protected override void OnLayoutChangeEnded(EventArgs args)
Parameters
System.EventArgs args

The System.EventArgs instance containing the event data.

Overrides
WindowBase.OnLayoutChangeEnded(EventArgs)

OnLayoutChangeStarted(EventArgs)

Raises the LayoutChangeStarted event of the RadDocking and the WindowBase.

Declaration
protected override void OnLayoutChangeStarted(EventArgs args)
Parameters
System.EventArgs args

The System.EventArgs instance containing the event data.

Overrides
WindowBase.OnLayoutChangeStarted(EventArgs)

OnRightMouseButtonUp()

Declaration
protected override void OnRightMouseButtonUp()
Overrides
WindowBase.OnRightMouseButtonUp()

ResetTheme()

Resets the theme.

Declaration
public void ResetTheme()

ShouldFocusOnActivate()

Declaration
protected override bool ShouldFocusOnActivate()
Returns
System.Boolean

Overrides
WindowBase.ShouldFocusOnActivate()

Extension Methods

DockingLogicalTreeHelper.GetParentDocking(ToolWindow)
CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.