double height = SystemParameters.PrimaryScreenHeight; double width = SystemParameters.PrimaryScreenWidth;