Skip to content

Commit 8949e0d

Browse files
committed
Chore: Update / add images
1 parent 24e0763 commit 8949e0d

File tree

8 files changed

+35
-6
lines changed

8 files changed

+35
-6
lines changed

Source/NETworkManager/Views/HostsFileEditorView.xaml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"
1313
xmlns:settings="clr-namespace:NETworkManager.Settings;assembly=NETworkManager.Settings"
1414
xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
15+
xmlns:wpfHelper="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF"
1516
xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"
1617
dialog:DialogParticipation.Register="{Binding}"
1718
mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:HostsFileEditorViewModel}">
@@ -34,11 +35,38 @@
3435
<RowDefinition Height="Auto" />
3536
<RowDefinition Height="Auto" />
3637
</Grid.RowDefinitions>
37-
<TextBox Grid.Column="0" Grid.Row="0"
38-
VerticalAlignment="Center" HorizontalAlignment="Right"
39-
Width="250"
40-
Text="{Binding Path=Search, UpdateSourceTrigger=PropertyChanged}"
41-
Style="{StaticResource ResourceKey=SearchTextBox}" />
38+
<StackPanel Grid.Column="0" Grid.Row="0"
39+
Orientation="Horizontal"
40+
VerticalAlignment="Center"
41+
HorizontalAlignment="Right">
42+
<Button Command="{Binding Path=RefreshCommand}"
43+
Style="{StaticResource CleanButton}"
44+
Margin="0,0,10,0">
45+
<Rectangle Width="24" Height="24"
46+
wpfHelper:ReloadAnimationHelper.IsReloading="{Binding IsRefreshing}">
47+
<Rectangle.OpacityMask>
48+
<VisualBrush Stretch="Uniform"
49+
Visual="{iconPacks:Material Kind=Refresh}" />
50+
</Rectangle.OpacityMask>
51+
<Rectangle.Style>
52+
<Style TargetType="{x:Type TypeName=Rectangle}">
53+
<Setter Property="Fill"
54+
Value="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}" />
55+
<Style.Triggers>
56+
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Button}}, Path=IsMouseOver}"
57+
Value="True">
58+
<Setter Property="Fill"
59+
Value="{DynamicResource ResourceKey=MahApps.Brushes.Gray5}" />
60+
</DataTrigger>
61+
</Style.Triggers>
62+
</Style>
63+
</Rectangle.Style>
64+
</Rectangle>
65+
</Button>
66+
<TextBox Width="250"
67+
Text="{Binding Path=Search, UpdateSourceTrigger=PropertyChanged}"
68+
Style="{StaticResource ResourceKey=SearchTextBox}" />
69+
</StackPanel>
4270
<controls:MultiSelectDataGrid x:Name="DataGridHostsFileTable"
4371
Grid.Column="0" Grid.Row="2"
4472
ItemsSource="{Binding ResultsView}"
@@ -170,7 +198,6 @@
170198
MinWidth="200" />
171199
</controls:MultiSelectDataGrid.Columns>
172200
</controls:MultiSelectDataGrid>
173-
174201
<Grid Grid.Column="0" Grid.Row="4">
175202
<Grid.ColumnDefinitions>
176203
<ColumnDefinition Width="*" />

Website/docs/application/hosts-file-editor.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ In addition, further actions can be performed using the buttons below:
3232

3333
:::note
3434

35+
With `F5` you can refresh the hosts file.
36+
3537
Right-click on the result to enabl e or disable an entry, delete or edit an entry, or to copy or export the information.
3638

3739
:::

Website/docs/img/arp-table.png

37 KB
Loading

Website/docs/img/connections.png

131 KB
Loading
56.7 KB
Loading

Website/docs/img/listeners.png

30.2 KB
Loading

Website/docs/img/wifi--channel.png

20.1 KB
Loading

Website/docs/img/wifi.png

10.4 KB
Loading

0 commit comments

Comments
 (0)