Skip to content

Commit

Permalink
Added support for resizing panels in the main window
Browse files Browse the repository at this point in the history
  • Loading branch information
spaghettidba committed Sep 2, 2016
1 parent fa799e2 commit 8bdb23e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ForumSurfer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.0.4")]
[assembly: AssemblyVersion("1.4.0.5")]

9 changes: 7 additions & 2 deletions ForumSurfer/View/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,20 @@
<Button Focusable="False" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Foreground="White" Width="50" Content="{StaticResource SettingsIcon}" ToolTip="Settings" Command="{Binding ShowOptionsCommand}"/>
</StackPanel>
</Grid>


<Grid x:Name="MainGrid" DockPanel.Dock="Top">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="5" />
<ColumnDefinition Width="1.5*" />
<ColumnDefinition Width="5" />
<ColumnDefinition Width="4*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>

<TreeView x:Name="Feeds" DataContext="{Binding Path=TreeModel}" ItemsSource="{Binding Items, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectedItemChanged">
Expand Down Expand Up @@ -273,6 +277,7 @@
</TreeView.Resources>
</TreeView>

<GridSplitter Grid.Column="1" Width="5" HorizontalAlignment="Stretch" />

<ListBox Grid.Column="2" Name="ArticlesList" ItemsSource="{Binding SortedArticles.View, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" SelectedItem="{Binding Path=SelectedArticle, Mode=TwoWay}">
<ListBox.ItemTemplate>
Expand Down Expand Up @@ -324,9 +329,9 @@
</ListBox.ItemTemplate>
</ListBox>

<GridSplitter Grid.Column="3" Width="5" HorizontalAlignment="Stretch" />


<WebBrowser browser:WebBrowserHelper.LinkSource="{Binding Path=SelectedArticle.Location}" Grid.Column="3" Name="wbFeed" Visibility="{Binding Path=IsBrowserVisible, Converter={StaticResource BooleanToVisibilityConverter}}">
<WebBrowser browser:WebBrowserHelper.LinkSource="{Binding Path=SelectedArticle.Location}" Grid.Column="4" Name="wbFeed" Visibility="{Binding Path=IsBrowserVisible, Converter={StaticResource BooleanToVisibilityConverter}}">

</WebBrowser>

Expand Down

0 comments on commit 8bdb23e

Please sign in to comment.