skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    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
    • Release History
  • Support and Learning

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

    Productivity and Design Tools

    • Visual Studio Extensions
    • 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 WindowBase

Inheritance
System.Object
HeaderedContentControl
WindowBase
RadWindow
Inherited Members
HeaderedContentControl.HasHeaderProperty
HeaderedContentControl.HeaderProperty
HeaderedContentControl.HeaderTemplateProperty
HeaderedContentControl.FocusVisualStyleProperty
HeaderedContentControl.HeaderTemplateSelectorProperty
HeaderedContentControl.IsFocusedProperty
HeaderedContentControl.OnApplyTemplate()
HeaderedContentControl.ChangeVisualState()
HeaderedContentControl.OnIsEnabledChanged(DependencyPropertyChangedEventArgs)
HeaderedContentControl.OnHeaderChanged(Object, Object)
HeaderedContentControl.OnHeaderTemplateChanged(DataTemplate, DataTemplate)
HeaderedContentControl.OnIsFocusedChanged(DependencyPropertyChangedEventArgs)
HeaderedContentControl.OnLostFocus(RoutedEventArgs)
HeaderedContentControl.HasHeader
HeaderedContentControl.IsFocused
HeaderedContentControl.Header
HeaderedContentControl.FocusVisualStyle
HeaderedContentControl.HeaderTemplate
HeaderedContentControl.HeaderTemplateSelector
Namespace: Telerik.UI.Xaml.Controls
Assembly: Telerik.WinUI.Controls.dll

Syntax

public abstract class WindowBase : HeaderedContentControl, INotifyLayoutChange, IWindowDragAware, IDragAware, IClickAware, IWindow

Constructors

WindowBase()

Declaration
protected WindowBase()

Fields

CanCloseProperty

Declaration
public static readonly DependencyProperty CanCloseProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

CanMoveProperty

Declaration
public static readonly DependencyProperty CanMoveProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

CaptionHeightProperty

Declaration
public static readonly DependencyProperty CaptionHeightProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

HideMaximizeButtonProperty

Declaration
public static readonly DependencyProperty HideMaximizeButtonProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

HideMinimizeButtonProperty

Declaration
public static readonly DependencyProperty HideMinimizeButtonProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

IsActiveWindowProperty

Declaration
public static readonly DependencyProperty IsActiveWindowProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

IsDraggingProperty

Declaration
public static readonly DependencyProperty IsDraggingProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

IsModalProperty

Declaration
public static readonly DependencyProperty IsModalProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

IsOpenProperty

Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

IsResizingProperty

Declaration
public static readonly DependencyProperty IsResizingProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

IsTopmostProperty

Declaration
public static readonly DependencyProperty IsTopmostProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

LeftProperty

Declaration
public static readonly DependencyProperty LeftProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

ResizeBorderProperty

Declaration
public static readonly DependencyProperty ResizeBorderProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

ResizeModeProperty

Declaration
public static readonly DependencyProperty ResizeModeProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

SizeToContentProperty

Declaration
public static readonly DependencyProperty SizeToContentProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

TopProperty

Declaration
public static readonly DependencyProperty TopProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

WindowStateProperty

Declaration
public static readonly DependencyProperty WindowStateProperty
Field Value
Microsoft.UI.Xaml.DependencyProperty

Properties

CanClose

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

CanMove

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

CaptionHeight

Declaration
public double CaptionHeight { get; set; }
Property Value
System.Double

HideMaximizeButton

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

HideMinimizeButton

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

IsActiveWindow

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

IsDragging

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

IsLayoutChanging

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

Implements
INotifyLayoutChange.IsLayoutChanging

IsModal

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

IsOpen

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

IsResizing

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

IsTopmost

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

Left

Declaration
public double Left { get; set; }
Property Value
System.Double

Owner

Declaration
public ContentControl Owner { get; set; }
Property Value
Microsoft.UI.Xaml.Controls.ContentControl

ResizeBorder

Declaration
public Thickness ResizeBorder { get; set; }
Property Value
Microsoft.UI.Xaml.Thickness

ResizeMode

Declaration
public ResizeMode ResizeMode { get; set; }
Property Value
ResizeMode

SizeToContent

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

Top

Declaration
public double Top { get; set; }
Property Value
System.Double

WindowState

Declaration
public WindowState WindowState { get; set; }
Property Value
WindowState

Methods

BringToFront()

Declaration
public void BringToFront()

ChangeVisualState(Boolean)

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

Overrides
HeaderedContentControl.ChangeVisualState(Boolean)

CheckCanClose()

Declaration
protected virtual bool CheckCanClose()
Returns
System.Boolean

Close()

Declaration
public void Close()

CloseWithoutEventsAndAnimations()

Declaration
protected void CloseWithoutEventsAndAnimations()

GetApplicationSize()

Declaration
protected Size GetApplicationSize()
Returns
Windows.Foundation.Size

GetNormalSizeAndPosition()

Declaration
public Rect GetNormalSizeAndPosition()
Returns
Windows.Foundation.Rect

GetWindowOwner()

Declaration
protected virtual ContentControl GetWindowOwner()
Returns
Microsoft.UI.Xaml.Controls.ContentControl

GetWindowStartupLocation()

Declaration
protected virtual WindowStartupLocation GetWindowStartupLocation()
Returns
WindowStartupLocation

GetZIndex()

Declaration
public virtual int GetZIndex()
Returns
System.Int32

OnActivated(EventArgs)

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

OnCloseAnimationFinished()

Declaration
protected virtual void OnCloseAnimationFinished()

OnClosed()

Declaration
protected virtual void OnClosed()

OnClosing()

Declaration
protected virtual bool OnClosing()
Returns
System.Boolean

OnDeactivated(EventArgs)

Declaration
protected virtual void OnDeactivated(EventArgs e)
Parameters
System.EventArgs e

OnDragDelta(Point, Rect, Rect, Boolean)

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

Windows.Foundation.Rect initialRect

Windows.Foundation.Rect destinationRect

System.Boolean isResize

Returns
Windows.Foundation.Rect

OnDragEnd(Point, Boolean, Boolean)

Declaration
protected virtual void OnDragEnd(Point globalMousePosition, bool isCancel, bool isResize)
Parameters
Windows.Foundation.Point globalMousePosition

System.Boolean isCancel

System.Boolean isResize

OnDragStart(Point, Boolean)

Declaration
protected virtual void OnDragStart(Point globalMousePosition, bool isResize)
Parameters
Windows.Foundation.Point globalMousePosition

System.Boolean isResize

OnGotFocus(RoutedEventArgs)

Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
Microsoft.UI.Xaml.RoutedEventArgs e

Overrides
HeaderedContentControl.OnGotFocus(RoutedEventArgs)

OnLayoutChangeEnded()

Declaration
protected void OnLayoutChangeEnded()

OnLayoutChangeEnded(EventArgs)

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

OnLayoutChangeStarted()

Declaration
protected void OnLayoutChangeStarted()

OnLayoutChangeStarted(EventArgs)

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

OnLocationChanged(EventArgs)

Declaration
protected virtual void OnLocationChanged(EventArgs args)
Parameters
System.EventArgs args

OnRightMouseButtonUp()

Declaration
protected virtual void OnRightMouseButtonUp()

OnRootVisualSizeChanged()

Declaration
protected virtual void OnRootVisualSizeChanged()

OnShowAnimationFinished()

Declaration
protected virtual void OnShowAnimationFinished()

OnWindowStateChanged(EventArgs)

Declaration
protected virtual void OnWindowStateChanged(EventArgs args)
Parameters
System.EventArgs args

ShouldActivateOnShow()

Declaration
protected virtual bool ShouldActivateOnShow()
Returns
System.Boolean

ShouldFocusOnActivate()

Declaration
protected virtual bool ShouldFocusOnActivate()
Returns
System.Boolean

ShowWindow(Boolean)

Declaration
protected virtual void ShowWindow(bool isModal)
Parameters
System.Boolean isModal

Events

Activated

Declaration
public event EventHandler Activated
Event Type
System.EventHandler

Deactivated

Declaration
public event EventHandler Deactivated
Event Type
System.EventHandler

LayoutChangeEnded

Declaration
public event EventHandler LayoutChangeEnded
Event Type
System.EventHandler

Implements
INotifyLayoutChange.LayoutChangeEnded

LayoutChangeStarted

Declaration
public event EventHandler LayoutChangeStarted
Event Type
System.EventHandler

Implements
INotifyLayoutChange.LayoutChangeStarted

LocationChanged

Declaration
public event EventHandler LocationChanged
Event Type
System.EventHandler

WindowStateChanged

Declaration
public event EventHandler WindowStateChanged
Event Type
System.EventHandler

Explicit Interface Implementations

IDragAware.OnDragDelta(Point, Rect, Rect, Boolean)

Declaration
Rect IDragAware.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, bool isResize)
Parameters
Windows.Foundation.Point globalMousePosition

Windows.Foundation.Rect initialRect

Windows.Foundation.Rect destinationRect

System.Boolean isResize

Returns
Windows.Foundation.Rect

Implements
IDragAware.OnDragDelta(Point, Rect, Rect, Boolean)

IDragAware.OnDragEnd(Point, Boolean, Boolean)

Declaration
void IDragAware.OnDragEnd(Point globalMousePosition, bool isCancel, bool isResize)
Parameters
Windows.Foundation.Point globalMousePosition

System.Boolean isCancel

System.Boolean isResize

Implements
IDragAware.OnDragEnd(Point, Boolean, Boolean)

IDragAware.OnDragStart(Point, Boolean)

Declaration
void IDragAware.OnDragStart(Point globalMousePosition, bool isResize)
Parameters
Windows.Foundation.Point globalMousePosition

System.Boolean isResize

Implements
IDragAware.OnDragStart(Point, Boolean)

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
Support Resources
  • Knowledge Base
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.