|
4 | 4 | xmlns:util="clr-namespace:ZSpitz.Util.Wpf;assembly=ZSpitz.Util.Wpf" |
5 | 5 | xmlns:nt="clr-namespace:NodaTime;assembly=NodaTime" |
6 | 6 | xmlns:my="clr-namespace:DateTimeVisualizer" |
7 | | - Orientation="Vertical" RowCount="3"> |
| 7 | + Orientation="Vertical" RowCount="4" Columns="Auto;Auto"> |
8 | 8 | <util:AutoGrid.Resources> |
9 | 9 | <my:FilterStateConverter x:Key="FilterStateConverter" /> |
10 | 10 | </util:AutoGrid.Resources> |
11 | 11 |
|
| 12 | + <DockPanel Grid.ColumnSpan="2" Margin="0,0,0,12"> |
| 13 | + <TextBlock Text="Text filter" Margin="0,0,3,0" /> |
| 14 | + <TextBox Text="{Binding TextFilter,UpdateSourceTrigger=PropertyChanged}" /> |
| 15 | + </DockPanel> |
| 16 | + |
12 | 17 | <TextBlock Text="TZDB zones:" Margin="0,0,12,3" /> |
13 | | - <TreeView MaxHeight="300" ItemsSource="{Binding AvailableTzdbZones}"> |
| 18 | + <TreeView MaxHeight="350" ItemsSource="{Binding AvailableTzdbZones}" Margin="0,0,12,3"> |
14 | 19 | <TreeView.ItemContainerStyle> |
15 | 20 | <Style TargetType="TreeViewItem"> |
16 | 21 | <Setter Property="Visibility" Value="{Binding FilterState, Converter={StaticResource FilterStateConverter}}" /> |
17 | 22 | </Style> |
18 | 23 | </TreeView.ItemContainerStyle> |
19 | 24 | <TreeView.ItemTemplate> |
20 | 25 | <HierarchicalDataTemplate ItemsSource="{Binding Children}"> |
21 | | - <StackPanel Orientation="Horizontal" Visibility="{Binding FilterState, Converter={StaticResource FilterStateConverter}}"> |
| 26 | + <StackPanel Orientation="Horizontal"> |
22 | 27 | <CheckBox Margin="2" IsChecked="{Binding IsSelected}" /> |
23 | 28 | <TextBlock Text="{Binding Text}" Foreground="{Binding FilterState, Converter={StaticResource FilterStateConverter}}" FontWeight="{Binding FilterState, Converter={StaticResource FilterStateConverter}}" /> |
24 | 29 | </StackPanel> |
25 | 30 | </HierarchicalDataTemplate> |
26 | 31 | </TreeView.ItemTemplate> |
27 | 32 | </TreeView> |
28 | | - <TextBlock Text="{Binding VersionId, Source={x:Static nt:DateTimeZoneProviders.Tzdb}}" /> |
| 33 | + <TextBlock Text="{Binding VersionId, Source={x:Static nt:DateTimeZoneProviders.Tzdb}}" Margin="0,0,12,0" /> |
29 | 34 |
|
30 | 35 | <TextBlock Text="BCL zones:" Margin="0,0,0,3" /> |
31 | | - <ListBox SelectionMode="Multiple" MaxHeight="300" SelectedValuePath="Text" ItemsSource="{Binding AvailableBclZones}" Margin="0,0,0,3"> |
| 36 | + <ListBox SelectionMode="Multiple" MaxHeight="350" SelectedValuePath="Text" ItemsSource="{Binding AvailableBclZones}" Margin="0,0,0,3"> |
32 | 37 | <ListBox.ItemContainerStyle> |
33 | 38 | <Style TargetType="ListBoxItem"> |
34 | 39 | <Setter Property="IsSelected" Value="{Binding IsSelected}" /> |
| 40 | + <Setter Property="Visibility" Value="{Binding FilterState, Converter={StaticResource FilterStateConverter}}" /> |
35 | 41 | </Style> |
36 | 42 | </ListBox.ItemContainerStyle> |
37 | 43 | <ListBox.ItemTemplate> |
|
0 commit comments