Class
WindowPresenterBase

Represents the base class for window presenters in the Telerik Windows controls. This class provides common functionality for managing window presentation and behavior.

Definition

Namespace:Telerik.Windows.Controls.InternalWindow

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
public class WindowPresenterBase : ContentPresenter

Inheritance: objectWindowPresenterBase

Constructors

WindowPresenterBase(IDragAware)

Initializes a new instance of the WindowPresenterBase class.

Declaration

cs-api-definition
public WindowPresenterBase(IDragAware windowHost)

Parameters

windowHost

IDragAware

Fields

CaptionHeightProperty

Dependency property for the height of the window caption.

Declaration

cs-api-definition
public static readonly DependencyProperty CaptionHeightProperty

Field Value

DependencyProperty

LeftProperty

Dependency property for the left position of the window presenter.

Declaration

cs-api-definition
public static readonly DependencyProperty LeftProperty

Field Value

DependencyProperty

ResizeBorderProperty

Dependency property for the resize border thickness of the window presenter.

Declaration

cs-api-definition
public static readonly DependencyProperty ResizeBorderProperty

Field Value

DependencyProperty

SizeToContentProperty

Dependency property for indicating whether the window should automatically size itself to fit its content.

Declaration

cs-api-definition
public static readonly DependencyProperty SizeToContentProperty

Field Value

DependencyProperty

TopProperty

Dependency property for the top position of the window presenter.

Declaration

cs-api-definition
public static readonly DependencyProperty TopProperty

Field Value

DependencyProperty

WindowHeightProperty

Dependency property for the window height.

Declaration

cs-api-definition
public static readonly DependencyProperty WindowHeightProperty

Field Value

DependencyProperty

WindowResizeModeProperty

Dependency property for the window resize mode.

Declaration

cs-api-definition
public static readonly DependencyProperty WindowResizeModeProperty

Field Value

DependencyProperty

WindowStateProperty

Dependency property for the window state, which can be Normal, Minimized, or Maximized.

Declaration

cs-api-definition
public static readonly DependencyProperty WindowStateProperty

Field Value

DependencyProperty

WindowWidthProperty

Dependency property for the window width.

Declaration

cs-api-definition
public static readonly DependencyProperty WindowWidthProperty

Field Value

DependencyProperty

Properties

CaptionHeight

Gets or sets the height of the window caption.

Declaration

cs-api-definition
public double CaptionHeight { get; set; }

Property Value

double

DragAware

Gets or sets a value indicating whether drag operations are allowed for the window.

Declaration

cs-api-definition
public IDragAware DragAware { get; }

Property Value

IDragAware

InitialPosition

Gets or sets the initial position of the window presenter.

Declaration

cs-api-definition
protected Rect InitialPosition { get; set; }

Property Value

Rect

Left

Gets or sets the left position of the window presenter in the coordinate space of its parent container.

Declaration

cs-api-definition
public double Left { get; set; }

Property Value

double

ResizeBorder

Resizes the border of the window presenter based on the provided dimensions.

Declaration

cs-api-definition
public Thickness ResizeBorder { get; set; }

Property Value

Thickness

SizeToContent

Gets or sets a value that indicates whether the window will automatically size itself to fit the content of its child elements.

Declaration

cs-api-definition
public bool SizeToContent { get; set; }

Property Value

bool

Top

Gets or sets the top position of the window presenter.

Declaration

cs-api-definition
public double Top { get; set; }

Property Value

double

A double representing the top position in pixels.

WindowHeight

Gets or sets the height of the window.

Declaration

cs-api-definition
public double WindowHeight { get; set; }

Property Value

double

WindowResizeMode

Gets or sets the mode for resizing the window.

Declaration

cs-api-definition
public ResizeMode WindowResizeMode { get; set; }

Property Value

ResizeMode

WindowState

Gets or sets the state of the window, indicating whether it is minimized, maximized, or in its normal state.

Declaration

cs-api-definition
public WindowState WindowState { get; set; }

Property Value

WindowState

WindowWidth

Gets or sets the width of the window.

Declaration

cs-api-definition
public double WindowWidth { get; set; }

Property Value

double

Methods

CoerceThumb(ThumbType)

Coerces the thumb type based on the current window state and resize mode.

Declaration

cs-api-definition
protected ThumbType CoerceThumb(ThumbType input)

Parameters

input

ThumbType

Returns

ThumbType

GenerateHitTestRectangles()

Generates hit test rectangles for the window presenter.

Declaration

cs-api-definition
protected Rect[] GenerateHitTestRectangles()

Returns

Rect[]

GetMaximumSize()

Gets the maximum size for the window presenter.

Declaration

cs-api-definition
protected virtual Size GetMaximumSize()

Returns

Size

MeasureOverride(Size)

Measures the size of the window presenter based on the available size.

Declaration

cs-api-definition
protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize

Size

Returns

Size

OnWindowPositionChanged()

Called when the position of the window changes.

Declaration

cs-api-definition
protected virtual void OnWindowPositionChanged()

OnWindowSizeChanged()

Called when the size of the window changes.

Declaration

cs-api-definition
protected virtual void OnWindowSizeChanged()

OnWindowStateChanged(WindowState)

Called when the size of the window changes.

Declaration

cs-api-definition
protected virtual void OnWindowStateChanged(WindowState oldState)

Parameters

oldState

WindowState

Resize(Rect)

Resizes the window presenter based on the provided position.

Declaration

cs-api-definition
protected void Resize(Rect position)

Parameters

position

Rect

SetSizeAndPosition(Rect)

Sets the size and position of the window presenter based on the provided rectangle.

Declaration

cs-api-definition
protected void SetSizeAndPosition(Rect rect)

Parameters

rect

Rect

UpdatePosition(Rect)

Updates the position of the window presenter based on the provided rectangle.

Declaration

cs-api-definition
protected void UpdatePosition(Rect position)

Parameters

position

Rect