Browse Source

纠错重写-高保真优化

liyijie 1 year ago
parent
commit
08a31c3174

+ 5 - 9
PDF Office/Views/HomePanel/ChatGPTAI/ChatGPTAIErrorCorrectionContent.xaml

@@ -19,14 +19,10 @@
             <convert:SizeToBoolConvert x:Key="SizeToBoolConvert"/>
         </ResourceDictionary>
     </UserControl.Resources>
-    <Grid Margin="0,0,0,0">
-        <Grid.RowDefinitions>
-            <RowDefinition Height="*" />
-            <RowDefinition Height="1.06*" />
-        </Grid.RowDefinitions>
-        <StackPanel Grid.Row="0">
+    <StackPanel Margin="0,0,0,0">
+        <StackPanel >
             <Grid  >
-                <StackPanel HorizontalAlignment="Left">
+                <StackPanel HorizontalAlignment="Left" >
                     <TextBlock Text="AI Error Correction" FontFamily="Segoe UI" Margin="0,16,0,0"
             FontSize="20"
             FontWeight="Bold"
@@ -49,7 +45,7 @@
                 <TextBlock Text="{Binding ElementName=textBoxEnterCharacters,Path=Text.Length,StringFormat={}{0}/150}" Panel.ZIndex="1" Height="22" FontSize="14" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,12,8" Foreground="{Binding ElementName=textBoxEnterCharacters,Path=Text.Length, Converter={StaticResource SizeBrushConvert}}"/>
             </Grid>
         </StackPanel>
-        <StackPanel Grid.Row="1">
+        <StackPanel  >
             <Grid Height="84">
                 <TextBlock Text="Result" FontFamily="Segoe UI"
             FontSize="20"
@@ -90,5 +86,5 @@
                 </cus:TextBoxEx>
             </Grid>
         </StackPanel>
-    </Grid>
+    </StackPanel>
 </UserControl>

+ 4 - 8
PDF Office/Views/HomePanel/ChatGPTAI/ChatGPTAIRewritingContent.xaml

@@ -19,12 +19,8 @@
             <convert:SizeToBoolConvert x:Key="SizeToBoolConvert"/>
         </ResourceDictionary>
     </UserControl.Resources>
-    <Grid Margin="0,0,0,0">
-        <Grid.RowDefinitions>
-            <RowDefinition Height="1*" />
-            <RowDefinition Height="1.06*" />
-        </Grid.RowDefinitions>
-        <StackPanel Grid.Row="0">
+    <StackPanel Margin="0,0,0,0">
+        <StackPanel>
             <Grid  >
                 <StackPanel HorizontalAlignment="Left">
                     <TextBlock Text="AI Rewriting" FontFamily="Segoe UI" Margin="0,16,0,0"
@@ -49,7 +45,7 @@
                 <TextBlock Text="{Binding ElementName=textBoxEnterCharacters,Path=Text.Length,StringFormat={}{0}/150}" Foreground="{Binding ElementName=textBoxEnterCharacters,Path=Text.Length, Converter={StaticResource SizeBrushConvert}}" Panel.ZIndex="1" Height="22" FontSize="14" HorizontalAlignment="Right"  VerticalAlignment="Bottom" Margin="0,0,12,8"/>
             </Grid>
         </StackPanel>
-        <StackPanel Grid.Row="1" >
+        <StackPanel>
             <Grid Height="84" >
                 <TextBlock Text="Result" FontFamily="Segoe UI"
             FontSize="20"
@@ -91,5 +87,5 @@
                 </cus:TextBoxEx>
             </Grid>
         </StackPanel>
-    </Grid>
+    </StackPanel>
 </UserControl>