Skip to content

ElementExtensions.FitContentSize<TWindow> method

Sets the window to fit content size.

public static TWindow FitContentSize<TWindow>(this TWindow window, double maxWidth = 1000m,
double maxHeight = 1000m)
where TWindow : Window
parameter description
TWindow Window type.
window Target window.
maxWidth Maximum width.
maxHeight Maximum height.

The window for chaining.