Kaynağa Gözat

Добавлен скролл карт

WoI 7 ay önce
ebeveyn
işleme
8c65a9f642
2 değiştirilmiş dosya ile 14 ekleme ve 7 silme
  1. 12 5
      WpfApp21Point/DeskPage.xaml
  2. 2 2
      WpfApp21Point/MainWindow.xaml

+ 12 - 5
WpfApp21Point/DeskPage.xaml

@@ -19,12 +19,19 @@
                 <RowDefinition Height="1*"/>
                 <RowDefinition Height="1*"/>
             </Grid.RowDefinitions>
-            <WrapPanel HorizontalAlignment="Center" VerticalAlignment="Center" Height="300" x:Name="ComputerDesk" Grid.Row="0" Orientation="Horizontal">
+            <ScrollViewer HorizontalScrollBarVisibility="Auto" 
+                          VerticalScrollBarVisibility="Disabled" Grid.Row="0" >
+                <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" 
+           Height="300" x:Name="ComputerDesk"
+           Orientation="Horizontal"/>
+            </ScrollViewer>
 
-            </WrapPanel>
-            <WrapPanel HorizontalAlignment="Center" VerticalAlignment="Center" Height="300" x:Name="UserDesk" Grid.Row="1" Orientation="Horizontal">
-
-            </WrapPanel>
+            <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Auto"
+                          VerticalScrollBarVisibility="Disabled">
+                <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" 
+                       Height="300" x:Name="UserDesk" 
+                       Orientation="Horizontal"/>
+            </ScrollViewer>
         </Grid>
         <StackPanel Grid.Column="1" Orientation="Vertical"
                     VerticalAlignment="Center" HorizontalAlignment="Center" >

+ 2 - 2
WpfApp21Point/MainWindow.xaml

@@ -5,8 +5,8 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:WpfApp21Point"
         mc:Ignorable="d"
-        Title="Двадцать одно" Height="650" Width="1200"
-        MinHeight="650" MinWidth="1200"
+        Title="Двадцать одно" Height="660" Width="1200"
+        MinHeight="660" MinWidth="1200"
         Background="#FF134825">
     <Grid>
         <Grid.ColumnDefinitions>