118118 </ComboBox >
119119 </ui : CommandBarElementContainer >
120120
121- <ui : CommandBarSeparator />
122-
123- <ui : CommandBarElementContainer >
124- <TextBlock HorizontalAlignment =" Center" VerticalAlignment =" Center" Padding =" 12 0"
125- Theme =" {DynamicResource CaptionTextBlockStyle}" >
126- <TextBlock .Text>
127- <MultiBinding StringFormat =" {}{0:N0} / {1:N0}" >
128- <Binding Path =" FilteredStrings.Count" />
129- <Binding Path =" AllStringResults.Count" />
130- </MultiBinding >
131- </TextBlock .Text>
132- </TextBlock >
133- </ui : CommandBarElementContainer >
134-
135121 <ui : CommandBarElementContainer IsVisible =" False" >
136122 <!--
137123 Hidden element to workaround HotKeys from secondary menus not registering until they're shown.
163149 FontFamily =" {Binding FontValue}"
164150 TemplateApplied =" Tree_OnTemplateApplied" >
165151 <TreeDataGrid .Styles>
166- <Style Selector =" ScrollBar" >
167- <Setter Property =" AllowAutoHide" Value =" False" />
168- </Style >
169152 <Style Selector =" TreeDataGridTextCell, TreeDataGridColumnHeader" >
170153 <Setter Property =" Padding" Value =" 8 2 8 2" />
171154 </Style >
187170 </StackPanel >
188171
189172 <!-- Footer -->
190- <Border IsVisible =" {Binding ProgressText, Converter={x:Static ObjectConverters.IsNotNull}}"
191- Grid.Row=" 2"
173+ <Border Grid.Row=" 2"
192174 BorderBrush =" {DynamicResource DividerStrokeColorDefaultBrush}"
193175 BorderThickness =" 0 1 0 0"
194176 Padding =" 5 5 5 5" >
195- <Grid ColumnDefinitions =" *,Auto,Auto" >
196- <TextBlock Grid.Column=" 0" Text =" {Binding ProgressText}" VerticalAlignment =" Center" />
197- <Button Grid.Column=" 2"
198- Margin =" 10 0 0 0"
199- Content =" Cancel"
200- Command =" {Binding CancelTask}" >
201- <Button .Styles>
202- <Style Selector =" AccessText" >
203- <Setter Property =" Theme" Value =" {DynamicResource CaptionTextBlockStyle}" />
204- </Style >
205- </Button .Styles>
206- </Button >
207- <ProgressBar Grid.Column=" 1" Value =" {Binding ProgressValue}" />
208- </Grid >
177+ <Panel >
178+ <Grid ColumnDefinitions =" *,Auto,Auto"
179+ IsVisible =" {Binding ProgressText, Converter={x:Static ObjectConverters.IsNotNull}}" >
180+ <TextBlock Grid.Column=" 0" Text =" {Binding ProgressText}" VerticalAlignment =" Center" Margin =" 5" />
181+ <Button Grid.Column=" 2"
182+ Margin =" 10 0 0 0"
183+ Padding =" 5"
184+ Content =" Cancel"
185+ Command =" {Binding CancelTask}" >
186+ <Button .Styles>
187+ <Style Selector =" AccessText" >
188+ <Setter Property =" Theme" Value =" {DynamicResource CaptionTextBlockStyle}" />
189+ </Style >
190+ </Button .Styles>
191+ </Button >
192+ <ProgressBar Grid.Column=" 1" Value =" {Binding ProgressValue}" />
193+ </Grid >
194+
195+ <Grid ColumnDefinitions =" *,Auto,Auto"
196+ IsVisible =" {Binding ProgressText, Converter={x:Static ObjectConverters.IsNull}}" >
197+ <TextBlock Grid.Column=" 0" Text =" {Binding LoadedFile}" VerticalAlignment =" Center" Margin =" 5" />
198+
199+ <TextBlock Grid.Column=" 1"
200+ IsVisible =" {Binding SearchText, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
201+ VerticalAlignment =" Center"
202+ Theme =" {DynamicResource CaptionTextBlockStyle}"
203+ Text =" {Binding FilteredStrings.Count, StringFormat='{}{0:N0} / '}" />
204+
205+ <TextBlock Grid.Column=" 2" VerticalAlignment =" Center"
206+ Theme =" {DynamicResource CaptionTextBlockStyle}"
207+ Text =" {Binding AllStringResults.Count, StringFormat='{}{0:N0} results'}" Margin =" 0 0 5 0" />
208+ </Grid >
209+ </Panel >
209210 </Border >
210211 </Grid >
211212</UserControl >
0 commit comments