private void OnOrientationChanged(PageOrientation pageOrientation) { if (_diagram.PageSettings != null) { _diagram.OnPageOrientationChanged(pageOrientation); } }
/// <summary> /// Method to change the pageorientation /// </summary> /// <param name="pageOrientation"></param> internal void OnPageOrientationChanged(PageOrientation pageOrientation) { if (pageOrientation == PageOrientation.Portrait) { PortraitOrientation = true; LandScapeOrientation = false; } else { PortraitOrientation = false; LandScapeOrientation = true; } }