ソースを参照

轻会员-弹窗调整

lvle 1 年間 前
コミット
8aade04879

+ 0 - 4
PDF Office/ViewModels/Dialog/ServiceDialog/UserDialogViewModel.cs

@@ -39,10 +39,6 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
 
         public void OnDialogOpened(IDialogParameters parameters)
         {
-            if (ServiceHelper. IsConnectInternet()==false)
-            {
-                RegionMan("NOInternetRegion");
-            }
 
         }
 

+ 8 - 8
PDF Office/Views/Dialog/ServiceDialog/NOInternetRegion.xaml

@@ -7,8 +7,8 @@
     xmlns:local="clr-namespace:PDF_Master.Views.Dialog.ServiceDialog"
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
     xmlns:prism="http://prismlibrary.com/"
-    Width="440"
-    Height="486"
+    Width="404"
+    Height="420"
     prism:ViewModelLocator.AutoWireViewModel="True"
     mc:Ignorable="d">
     <Grid Background="White">
@@ -43,9 +43,10 @@
                     StrokeThickness="3" />
             </Border>
         </Grid>
-        <StackPanel Orientation="Vertical"
+        <Grid
             Width="262"
-            Margin="0,246,0,0"
+            Height="112"
+            Margin="0,226,0,0"
             HorizontalAlignment="Center"
             VerticalAlignment="Top">
             <TextBlock
@@ -59,7 +60,7 @@
             <TextBlock
                 Width="262"
                 Height="40"
-                Margin="0,32,0,0"
+                Margin="0,22,0,0"
                 HorizontalAlignment="Left"
                 VerticalAlignment="Top"
                 FontFamily="Segoe UI"
@@ -69,8 +70,7 @@
                 Text="{Binding Text_toconnect}"
                 TextAlignment="Center"
                 TextWrapping="Wrap" />
-            <Button           
-                Margin="0,40,0,0"
+            <Button             
                 Content="{Binding Text_retry}"
                 Command="{Binding RetryCommand}"
                 Foreground="White"
@@ -78,7 +78,7 @@
                 Height="32"
                  Style="{StaticResource Btn.cta}"
                 VerticalAlignment="Bottom" IsDefault="True" />
-        </StackPanel>
+        </Grid>
 
     </Grid>
 </UserControl>