|
12 | 12 | xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" |
13 | 13 | xmlns:settings="clr-namespace:NETworkManager.Settings;assembly=NETworkManager.Settings" |
14 | 14 | xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" |
| 15 | + xmlns:wpfHelper="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" |
15 | 16 | xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" |
16 | 17 | dialog:DialogParticipation.Register="{Binding}" |
17 | 18 | mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:HostsFileEditorViewModel}"> |
|
34 | 35 | <RowDefinition Height="Auto" /> |
35 | 36 | <RowDefinition Height="Auto" /> |
36 | 37 | </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> |
42 | 70 | <controls:MultiSelectDataGrid x:Name="DataGridHostsFileTable" |
43 | 71 | Grid.Column="0" Grid.Row="2" |
44 | 72 | ItemsSource="{Binding ResultsView}" |
|
170 | 198 | MinWidth="200" /> |
171 | 199 | </controls:MultiSelectDataGrid.Columns> |
172 | 200 | </controls:MultiSelectDataGrid> |
173 | | - |
174 | 201 | <Grid Grid.Column="0" Grid.Row="4"> |
175 | 202 | <Grid.ColumnDefinitions> |
176 | 203 | <ColumnDefinition Width="*" /> |
|
0 commit comments