Пример #1
0
 /// <summary> Resize the preview when the PreviewWindow is resized </summary>
 protected void OnPreviewWindowResize(object sender, EventArgs e)
 {
     // Position video window in client rect of owner window.
     VideoWindow?.SetWindowPosition(0, 0,
                                    (int)(PreviewWindow.ActualWidth * Scale),
                                    (int)(PreviewWindow.ActualHeight * Scale)); //-70
 }
Пример #2
0
 /// <summary> Resize the preview when the PreviewWindow is resized </summary>
 protected void OnPreviewWindowResize(object sender, EventArgs e)
 {
     if (VideoWindow != null)
     {
         // Position video window in client rect of owner window
         VideoWindow.SetWindowPosition(0, 0, (int)PreviewWindow.Width, (int)PreviewWindow.Height - 70);
     }
 }