Skip to content

Commit

Permalink
Fix scrolling of search filters
Browse files Browse the repository at this point in the history
Whoops, though I had list scrolling sorted.
Also disabled the 'X' column when showing tames as this is meaningless and would not be saved.

Closes #12
  • Loading branch information
coldino committed Feb 9, 2018
1 parent 4f43790 commit 021d1e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LarkatorGUI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected"/>
<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled"/>
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
<Setter Property="ScrollViewer.PanningMode" Value="VerticalOnly"/>
<Setter Property="Stylus.IsFlicksEnabled" Value="True"/>
<Setter Property="HeadersVisibility" Value="Column"/>
Expand Down Expand Up @@ -195,6 +195,8 @@
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>

<FrameworkElement x:Name="dummyElement"/>

<Border x:Name="statusPanel" Grid.Row="1" Background="#33000000" Padding="8,6,8,3">
<Grid Height="16" TextBlock.Foreground="AntiqueWhite">
<Grid.ColumnDefinitions>
Expand Down Expand Up @@ -270,7 +272,7 @@
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn >
<DataGridTemplateColumn Visibility="{Binding DataContext.ShowHunt, Source={x:Reference dummyElement}, Converter={StaticResource BoolToVisibilityConverter}}">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Button BorderThickness="0" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="RemoveSearch_Click" Padding="0" Margin="0">
Expand Down

0 comments on commit 021d1e2

Please sign in to comment.