소스 검색

Move call to StartUpUC

Ruben 4 년 전
부모
커밋
1d6570a244
1개의 변경된 파일1개의 추가작업 그리고 12개의 파일을 삭제
  1. 1 12
      PicView/SystemIntegration/NativeMethods.cs

+ 1 - 12
PicView/SystemIntegration/NativeMethods.cs

@@ -163,18 +163,7 @@ namespace PicView.SystemIntegration
                     {
                         if (UC.GetStartUpUC is not null)
                         {
-                            if (w.Width < 900)
-                            {
-                                UC.GetStartUpUC.logo.Width = 247;
-                                UC.GetStartUpUC.buttons.Margin = new Thickness(0, 0, 0, 0);
-                                UC.GetStartUpUC.buttons.VerticalAlignment = VerticalAlignment.Bottom;
-                            }
-                            else if (w.Width > 900)
-                            {
-                                UC.GetStartUpUC.logo.Width = double.NaN;
-                                UC.GetStartUpUC.buttons.Margin = new Thickness(0, 181, 25, 16);
-                                UC.GetStartUpUC.buttons.VerticalAlignment = VerticalAlignment.Center;
-                            }
+                            UC.GetStartUpUC.ResponsiveSize(w.Width);
                         }
                     }
                 }