summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorGrant Limberg <glimberg@gmail.com>2015-10-21 20:40:43 -0700
committerGrant Limberg <glimberg@gmail.com>2015-10-21 20:40:43 -0700
commitfe6960888a7a12a71d79059f52985cd21241658d (patch)
tree58651cf4dd70f5f1093fba03fbf82a8886318333 /windows
parent5b6ddaa2d744dfc726829da0893a7f03c9043c8a (diff)
downloadinfinitytier-fe6960888a7a12a71d79059f52985cd21241658d.tar.gz
infinitytier-fe6960888a7a12a71d79059f52985cd21241658d.zip
add a scroll bar to the network info view
Diffstat (limited to 'windows')
-rw-r--r--windows/WinUI/MainWindow.xaml10
-rw-r--r--windows/WinUI/NetworksPage.xaml6
2 files changed, 12 insertions, 4 deletions
diff --git a/windows/WinUI/MainWindow.xaml b/windows/WinUI/MainWindow.xaml
index 52a76ebb..d3b4d47f 100644
--- a/windows/WinUI/MainWindow.xaml
+++ b/windows/WinUI/MainWindow.xaml
@@ -88,8 +88,14 @@
</StatusBar>
<TabControl>
<TabItem x:Name="Networks" Header="Networks" Background="#FF234447" Foreground="White" IsSelected="True" IsManipulationEnabled="True">
- <Grid>
- <local:NetworksPage x:Name="networksPage" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
+ <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+ <Grid.RowDefinitions>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+ <local:NetworksPage x:Name="networksPage" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="0" Margin="0,0,0,0"/>
</Grid>
</TabItem>
<TabItem x:Name="Peers" Header="Peers" Background="#FF234447" Foreground="White">
diff --git a/windows/WinUI/NetworksPage.xaml b/windows/WinUI/NetworksPage.xaml
index d8888bf0..0dd87fbb 100644
--- a/windows/WinUI/NetworksPage.xaml
+++ b/windows/WinUI/NetworksPage.xaml
@@ -5,7 +5,9 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
- <WrapPanel x:Name="wrapPanel" Background="#FF555555">
+ <ScrollViewer x:Name="MyScrollViewer" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
+ <WrapPanel x:Name="wrapPanel" Background="#FF555555" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
- </WrapPanel>
+ </WrapPanel>
+ </ScrollViewer>
</UserControl>