Class WindowBase
Inheritance
System.Object
WindowBase
Assembly: Telerik.WinUI.Controls.dll
Syntax
public abstract class WindowBase : HeaderedContentControl, INotifyLayoutChange, IWindowDragAware, IDragAware, IClickAware, IWindow
Constructors
Fields
Declaration
public static readonly DependencyProperty CanCloseProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty CanMoveProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty CaptionHeightProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty IsActiveWindowProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty IsDraggingProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty IsModalProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty IsResizingProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty IsTopmostProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty LeftProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty ResizeBorderProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty ResizeModeProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty SizeToContentProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty TopProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Declaration
public static readonly DependencyProperty WindowStateProperty
Field Value
|
Microsoft.UI.Xaml.DependencyProperty
|
Properties
Declaration
public bool CanClose { get; set; }
Property Value
Declaration
public bool CanMove { get; set; }
Property Value
Declaration
public double CaptionHeight { get; set; }
Property Value
Declaration
public bool IsActiveWindow { get; }
Property Value
Declaration
public bool IsDragging { get; protected set; }
Property Value
Declaration
public bool IsLayoutChanging { get; }
Property Value
Implements
Declaration
public bool IsModal { get; }
Property Value
Declaration
public bool IsOpen { get; protected set; }
Property Value
Declaration
public bool IsResizing { get; protected set; }
Property Value
Declaration
public bool IsTopmost { get; set; }
Property Value
Declaration
public double Left { get; set; }
Property Value
Declaration
public ContentControl Owner { get; set; }
Property Value
|
Microsoft.UI.Xaml.Controls.ContentControl
|
Declaration
public Thickness ResizeBorder { get; set; }
Property Value
|
Microsoft.UI.Xaml.Thickness
|
Declaration
public ResizeMode ResizeMode { get; set; }
Property Value
Declaration
public bool SizeToContent { get; set; }
Property Value
Declaration
public double Top { get; set; }
Property Value
Declaration
public WindowState WindowState { get; set; }
Property Value
Methods
Declaration
public void BringToFront()
Declaration
protected override void ChangeVisualState(bool useTransitions)
Parameters
|
System.Boolean
useTransitions
|
Overrides
Declaration
protected virtual bool CheckCanClose()
Returns
Declaration
protected void CloseWithoutEventsAndAnimations()
Declaration
protected Size GetApplicationSize()
Returns
Declaration
public Rect GetNormalSizeAndPosition()
Returns
Declaration
protected virtual ContentControl GetWindowOwner()
Returns
|
Microsoft.UI.Xaml.Controls.ContentControl
|
Declaration
protected virtual WindowStartupLocation GetWindowStartupLocation()
Returns
Declaration
public virtual int GetZIndex()
Returns
Declaration
protected virtual void OnActivated(EventArgs e)
Parameters
Declaration
protected virtual void OnCloseAnimationFinished()
Declaration
protected virtual void OnClosed()
Declaration
protected virtual bool OnClosing()
Returns
Declaration
protected virtual void OnDeactivated(EventArgs e)
Parameters
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
Declaration
protected virtual void OnDragEnd(Point globalMousePosition, bool isCancel, bool isResize)
Parameters
|
Windows.Foundation.Point
globalMousePosition
|
|
System.Boolean
isCancel
|
|
System.Boolean
isResize
|
Declaration
protected virtual void OnDragStart(Point globalMousePosition, bool isResize)
Parameters
|
Windows.Foundation.Point
globalMousePosition
|
|
System.Boolean
isResize
|
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
|
Microsoft.UI.Xaml.RoutedEventArgs
e
|
Overrides
Declaration
protected void OnLayoutChangeEnded()
Declaration
protected virtual void OnLayoutChangeEnded(EventArgs args)
Parameters
Declaration
protected void OnLayoutChangeStarted()
Declaration
protected virtual void OnLayoutChangeStarted(EventArgs args)
Parameters
Declaration
protected virtual void OnLocationChanged(EventArgs args)
Parameters
Declaration
protected virtual void OnRootVisualSizeChanged()
Declaration
protected virtual void OnShowAnimationFinished()
Declaration
protected virtual void OnWindowStateChanged(EventArgs args)
Parameters
Declaration
protected virtual bool ShouldActivateOnShow()
Returns
Declaration
protected virtual bool ShouldFocusOnActivate()
Returns
Declaration
protected virtual void ShowWindow(bool isModal)
Parameters
Events
Declaration
public event EventHandler Activated
Event Type
Declaration
public event EventHandler Deactivated
Event Type
Declaration
public event EventHandler LayoutChangeEnded
Event Type
Implements
Declaration
public event EventHandler LayoutChangeStarted
Event Type
Implements
Declaration
public event EventHandler LocationChanged
Event Type
Declaration
public event EventHandler WindowStateChanged
Event Type
Explicit Interface Implementations
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
Implements
Declaration
void IDragAware.OnDragEnd(Point globalMousePosition, bool isCancel, bool isResize)
Parameters
|
Windows.Foundation.Point
globalMousePosition
|
|
System.Boolean
isCancel
|
|
System.Boolean
isResize
|
Implements
Declaration
void IDragAware.OnDragStart(Point globalMousePosition, bool isResize)
Parameters
|
Windows.Foundation.Point
globalMousePosition
|
|
System.Boolean
isResize
|
Implements
Extension Methods