Skip to content

Commit f81b1d6

Browse files
committed
Chore: Redesign refresh button
1 parent 6a48c7f commit f81b1d6

File tree

3 files changed

+111
-124
lines changed

3 files changed

+111
-124
lines changed

Source/NETworkManager/Views/ARPTableView.xaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@
4141
VerticalAlignment="Center"
4242
HorizontalAlignment="Right">
4343
<CheckBox IsChecked="{Binding AutoRefreshEnabled}"
44-
Content="{x:Static localization:Strings.AutomaticallyUpdateEvery}" Margin="0,0,10,0" />
45-
<ComboBox ItemsSource="{Binding AutoRefreshTimes}" SelectedItem="{Binding SelectedAutoRefreshTime}"
46-
MinWidth="150" Margin="0,0,10,0">
44+
Content="{x:Static localization:Strings.AutomaticallyUpdateEvery}"
45+
Margin="0,0,10,0" />
46+
<ComboBox ItemsSource="{Binding AutoRefreshTimes}"
47+
SelectedItem="{Binding SelectedAutoRefreshTime}"
48+
MinWidth="150"
49+
Margin="0,0,10,0">
4750
<ComboBox.ItemTemplate>
4851
<DataTemplate DataType="utilities:AutoRefreshTimeInfo">
4952
<TextBlock>
@@ -58,9 +61,7 @@
5861
</DataTemplate>
5962
</ComboBox.ItemTemplate>
6063
</ComboBox>
61-
<Button Width="{Binding RelativeSource={RelativeSource Mode=Self}, Path=ActualHeight}"
62-
Height="{Binding ElementName=ComboBoxAdapters, Path=ActualHeight}"
63-
Command="{Binding Path=RefreshCommand}"
64+
<Button Command="{Binding Path=RefreshCommand}"
6465
Style="{StaticResource CleanButton}"
6566
Margin="0,0,10,0">
6667
<Rectangle Width="24" Height="24"
@@ -85,7 +86,8 @@
8586
</Rectangle.Style>
8687
</Rectangle>
8788
</Button>
88-
<TextBox Width="250" Text="{Binding Path=Search, UpdateSourceTrigger=PropertyChanged}"
89+
<TextBox Width="250"
90+
Text="{Binding Path=Search, UpdateSourceTrigger=PropertyChanged}"
8991
Style="{StaticResource ResourceKey=SearchTextBox}" />
9092
</StackPanel>
9193
<controls:MultiSelectDataGrid x:Name="DataGridArpTable"
@@ -199,9 +201,9 @@
199201
<ColumnDefinition Width="10" />
200202
<ColumnDefinition Width="*" />
201203
</Grid.ColumnDefinitions>
202-
203204
<WrapPanel Grid.Column="0" Grid.Row="0"
204-
Orientation="Horizontal" VerticalAlignment="Center"
205+
Orientation="Horizontal"
206+
VerticalAlignment="Center"
205207
HorizontalAlignment="Left">
206208
<Button Command="{Binding DeleteTableCommand}" Style="{StaticResource ImageWithTextButton}">
207209
<Grid>

0 commit comments

Comments
 (0)