浏览代码

添加滚动条

ltwork 1 年之前
父节点
当前提交
afffc0664e
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      BlankApp1/BlankApp1/Views/BasicConfigView/EditSchView.xaml

+ 3 - 4
BlankApp1/BlankApp1/Views/BasicConfigView/EditSchView.xaml

@@ -47,13 +47,12 @@
                 <b:InvokeCommandAction Command="{Binding OnLoadCommand}" CommandParameter="{Binding ElementName=tt}"/>
                 <b:InvokeCommandAction Command="{Binding OnLoadCommand}" CommandParameter="{Binding ElementName=tt}"/>
             </b:EventTrigger>
             </b:EventTrigger>
         </b:Interaction.Triggers>
         </b:Interaction.Triggers>
-       
+        <ScrollViewer Template="{StaticResource MyScrollViewer}" VerticalScrollBarVisibility="Auto" Margin="0,0,10,0">
             <Grid >
             <Grid >
 
 
                 <Grid.RowDefinitions>
                 <Grid.RowDefinitions>
                     <RowDefinition Height="50" />
                     <RowDefinition Height="50" />
-                    <RowDefinition  />
-                   
+                    <RowDefinition />
 
 
                 </Grid.RowDefinitions>
                 </Grid.RowDefinitions>
 
 
@@ -175,9 +174,9 @@ Command="{Binding DataContext.DeleteCommand, RelativeSource={RelativeSource Mode
                 </Grid>
                 </Grid>
 
 
             </Grid>
             </Grid>
-     
 
 
 
 
+        </ScrollViewer>
 
 
 
 
     </Grid>
     </Grid>