Method CenterOnScreen
| Edit this page View SourceCenterOnScreen(Window, double?, double?)
Centers the window on the current monitor
Declaration
public static void CenterOnScreen(this Window window, double? width = null, double? height = null)
Parameters
Type | Name | Description |
---|---|---|
Window | window | Window |
double? | width | Width of the window in device independent pixels, or |
double? | height | Height of the window in device independent pixels, or |