Show / Hide Table of Contents

Method wpfBuilder.WinSize


Overload

Sets window width and/or height or/and min/max width/height.

public wpfBuilder WinSize(WBLength? width = null, WBLength? height = null)
Parameters
width  (WBLength?)

Width or/and min/max width.

height  (WBLength?)

Height or/and min/max height.

Returns
wpfBuilder
Exceptions
InvalidOperationException
  • Container is not of type Window.
  • Cannot be after the last End.
  • Cannot be after WinRect or WinSaved.

Remarks

Use WPF logical device-independent units, not physical pixels.

See Also

wpfBuilder.WinRect
wpfBuilder.WinSaved