|
147 | 147 | <ColumnDefinition Width="Auto" />
|
148 | 148 | <ColumnDefinition Width="10" />
|
149 | 149 | <ColumnDefinition Width="Auto" />
|
150 |
| - </Grid.ColumnDefinitions> |
151 |
| - <TextBlock Grid.Column="0" Text="{x:Static localization:Strings.Networks}" Style="{StaticResource HeaderTextBlock}" Margin="0,0,0,0" /> |
152 |
| - <CheckBox Grid.Column="4" Content="{x:Static localization:Strings.GHz2dot4}" IsChecked="{Binding Show2dot4GHzNetworks}" /> |
153 |
| - <CheckBox Grid.Column="6" Content="{x:Static localization:Strings.GHz5}" IsChecked="{Binding Show5GHzNetworks}" /> |
154 |
| - <TextBox x:Name="TextBoxSearch" Grid.Column="8" Width="250" Text="{Binding Search, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SearchTextBox}" /> |
| 150 | + </Grid.ColumnDefinitions> |
| 151 | + <TextBlock Grid.Column="0" Grid.Row="0" Text="{x:Static localization:Strings.Networks}" Style="{StaticResource HeaderTextBlock}" Margin="0,0,0,0" /> |
| 152 | + <WrapPanel Grid.Column="2" Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right"> |
| 153 | + <CheckBox IsChecked="{Binding AutoRefresh}" Content="{x:Static localization:Strings.AutomaticallyUpdateEvery}" Margin="0,0,10,0"/> |
| 154 | + <ComboBox ItemsSource="{Binding AutoRefreshTimes}" SelectedItem="{Binding SelectedAutoRefreshTime}" MinWidth="150"> |
| 155 | + <ComboBox.ItemTemplate> |
| 156 | + <DataTemplate DataType="utilities:AutoRefreshTimeInfo"> |
| 157 | + <TextBlock> |
| 158 | + <TextBlock.Text> |
| 159 | + <MultiBinding StringFormat="{}{0} {1}"> |
| 160 | + <Binding Path="Value" /> |
| 161 | + <Binding Path="TimeUnit" Converter="{StaticResource AutoRefreshTimeToStringConverter}" /> |
| 162 | + </MultiBinding> |
| 163 | + </TextBlock.Text> |
| 164 | + </TextBlock> |
| 165 | + </DataTemplate> |
| 166 | + </ComboBox.ItemTemplate> |
| 167 | + </ComboBox> |
| 168 | + </WrapPanel> |
| 169 | + <CheckBox Grid.Column="4" Grid.Row="0" Content="{x:Static localization:Strings.GHz2dot4}" IsChecked="{Binding Show2dot4GHzNetworks}" /> |
| 170 | + <CheckBox Grid.Column="6" Grid.Row="0" Content="{x:Static localization:Strings.GHz5}" IsChecked="{Binding Show5GHzNetworks}" /> |
| 171 | + <TextBox x:Name="TextBoxSearch" Grid.Column="8" Grid.Row="0" Width="250" Text="{Binding Search, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SearchTextBox}" /> |
155 | 172 | </Grid>
|
156 | 173 | <ListView Grid.Row="2" Visibility="{Binding IsNetworksLoading, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" ScrollViewer.PanningMode="VerticalOnly" ItemsSource="{Binding NetworksView}" SelectedItem="{Binding SelectedNetwork}" Background="Transparent" BorderThickness="0" SelectionMode="Single">
|
157 | 174 | <ListView.Resources>
|
|
355 | 372 | <TextBlock Text="{x:Static localization:Strings.SearchingForNetworksDots}" Style="{StaticResource MessageTextBlock}" />
|
356 | 373 | </StackPanel>
|
357 | 374 | <Grid Grid.Row="4">
|
358 |
| - <Grid.ColumnDefinitions> |
359 |
| - <ColumnDefinition Width="*" /> |
360 |
| - <ColumnDefinition Width="10" /> |
361 |
| - <ColumnDefinition Width="Auto" /> |
362 |
| - </Grid.ColumnDefinitions> |
363 |
| - <WrapPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center"> |
364 |
| - <CheckBox IsChecked="{Binding AutoRefresh}" Content="{x:Static localization:Strings.AutomaticallyUpdateEvery}" Margin="0,0,10,0"/> |
365 |
| - <ComboBox ItemsSource="{Binding AutoRefreshTimes}" SelectedItem="{Binding SelectedAutoRefreshTime}" MinWidth="150"> |
366 |
| - <ComboBox.ItemTemplate> |
367 |
| - <DataTemplate DataType="utilities:AutoRefreshTimeInfo"> |
368 |
| - <TextBlock> |
369 |
| - <TextBlock.Text> |
370 |
| - <MultiBinding StringFormat="{}{0} {1}"> |
371 |
| - <Binding Path="Value" /> |
372 |
| - <Binding Path="TimeUnit" Converter="{StaticResource AutoRefreshTimeToStringConverter}" /> |
373 |
| - </MultiBinding> |
374 |
| - </TextBlock.Text> |
375 |
| - </TextBlock> |
376 |
| - </DataTemplate> |
377 |
| - </ComboBox.ItemTemplate> |
378 |
| - </ComboBox> |
379 |
| - </WrapPanel> |
380 |
| - <Button Grid.Column="2" Command="{Binding ScanNetworksCommand}" VerticalAlignment="Bottom" HorizontalAlignment="Right"> |
| 375 | + <Button Grid.Column="0" Grid.Row="0" Command="{Binding ScanNetworksCommand}" VerticalAlignment="Bottom" HorizontalAlignment="Right"> |
381 | 376 | <Button.Style>
|
382 | 377 | <Style TargetType="{x:Type Button}" BasedOn="{StaticResource ImageWithTextButton}">
|
383 | 378 | <Style.Triggers>
|
|
0 commit comments