|
36 | 36 | <RowDefinition Height="10" /> |
37 | 37 | <RowDefinition Height="Auto" /> |
38 | 38 | </Grid.RowDefinitions> |
39 | | - <StackPanel Grid.Column="0" Grid.Row="0" |
40 | | - Orientation="Horizontal" |
41 | | - VerticalAlignment="Center" |
42 | | - HorizontalAlignment="Right"> |
43 | | - <CheckBox IsChecked="{Binding AutoRefreshEnabled}" |
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"> |
50 | | - <ComboBox.ItemTemplate> |
51 | | - <DataTemplate DataType="utilities:AutoRefreshTimeInfo"> |
52 | | - <TextBlock> |
53 | | - <TextBlock.Text> |
54 | | - <MultiBinding StringFormat="{}{0} {1}"> |
55 | | - <Binding Path="Value" /> |
56 | | - <Binding Path="TimeUnit" |
57 | | - Converter="{StaticResource TimeUnitToStringConverter}" /> |
58 | | - </MultiBinding> |
59 | | - </TextBlock.Text> |
60 | | - </TextBlock> |
61 | | - </DataTemplate> |
62 | | - </ComboBox.ItemTemplate> |
63 | | - </ComboBox> |
64 | | - <Button Command="{Binding Path=RefreshCommand}" |
65 | | - Style="{StaticResource CleanButton}" |
66 | | - Margin="0,0,10,0"> |
67 | | - <Rectangle Width="24" Height="24" |
68 | | - wpfHelper:ReloadAnimationHelper.IsReloading="{Binding IsRefreshing}"> |
69 | | - <Rectangle.OpacityMask> |
70 | | - <VisualBrush Stretch="Uniform" |
71 | | - Visual="{iconPacks:Material Kind=Refresh}" /> |
72 | | - </Rectangle.OpacityMask> |
73 | | - <Rectangle.Style> |
74 | | - <Style TargetType="{x:Type TypeName=Rectangle}"> |
75 | | - <Setter Property="Fill" |
76 | | - Value="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}" /> |
77 | | - <Style.Triggers> |
78 | | - <DataTrigger |
79 | | - Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Button}}, Path=IsMouseOver}" |
80 | | - Value="True"> |
81 | | - <Setter Property="Fill" |
82 | | - Value="{DynamicResource ResourceKey=MahApps.Brushes.Gray5}" /> |
83 | | - </DataTrigger> |
84 | | - </Style.Triggers> |
85 | | - </Style> |
86 | | - </Rectangle.Style> |
87 | | - </Rectangle> |
88 | | - </Button> |
89 | | - <TextBox Width="250" |
90 | | - Text="{Binding Path=Search, UpdateSourceTrigger=PropertyChanged}" |
91 | | - Style="{StaticResource ResourceKey=SearchTextBox}" /> |
92 | | - </StackPanel> |
| 39 | + <Grid Grid.Column="0" Grid.Row="0"> |
| 40 | + <Grid.ColumnDefinitions> |
| 41 | + <ColumnDefinition Width="*" /> |
| 42 | + <ColumnDefinition Width="Auto" /> |
| 43 | + </Grid.ColumnDefinitions> |
| 44 | + <TextBlock Grid.Column="0" |
| 45 | + Style="{StaticResource HeaderTextBlock}" |
| 46 | + Text="{x:Static localization:Strings.ARPTable}" |
| 47 | + VerticalAlignment="Center" /> |
| 48 | + <StackPanel Grid.Column="1" |
| 49 | + Orientation="Horizontal" |
| 50 | + VerticalAlignment="Center" |
| 51 | + HorizontalAlignment="Right"> |
| 52 | + <CheckBox IsChecked="{Binding AutoRefreshEnabled}" |
| 53 | + Content="{x:Static localization:Strings.AutomaticallyUpdateEvery}" |
| 54 | + Margin="0,0,10,0" /> |
| 55 | + <ComboBox ItemsSource="{Binding AutoRefreshTimes}" |
| 56 | + SelectedItem="{Binding SelectedAutoRefreshTime}" |
| 57 | + MinWidth="150" |
| 58 | + Margin="0,0,10,0"> |
| 59 | + <ComboBox.ItemTemplate> |
| 60 | + <DataTemplate DataType="utilities:AutoRefreshTimeInfo"> |
| 61 | + <TextBlock> |
| 62 | + <TextBlock.Text> |
| 63 | + <MultiBinding StringFormat="{}{0} {1}"> |
| 64 | + <Binding Path="Value" /> |
| 65 | + <Binding Path="TimeUnit" |
| 66 | + Converter="{StaticResource TimeUnitToStringConverter}" /> |
| 67 | + </MultiBinding> |
| 68 | + </TextBlock.Text> |
| 69 | + </TextBlock> |
| 70 | + </DataTemplate> |
| 71 | + </ComboBox.ItemTemplate> |
| 72 | + </ComboBox> |
| 73 | + <Button Command="{Binding Path=RefreshCommand}" |
| 74 | + Style="{StaticResource CleanButton}" |
| 75 | + Margin="0,0,10,0"> |
| 76 | + <Rectangle Width="16" Height="16" |
| 77 | + wpfHelper:ReloadAnimationHelper.IsReloading="{Binding IsRefreshing}"> |
| 78 | + <Rectangle.OpacityMask> |
| 79 | + <VisualBrush Stretch="Uniform" |
| 80 | + Visual="{iconPacks:Material Kind=Refresh}" /> |
| 81 | + </Rectangle.OpacityMask> |
| 82 | + <Rectangle.Style> |
| 83 | + <Style TargetType="{x:Type TypeName=Rectangle}"> |
| 84 | + <Setter Property="Fill" |
| 85 | + Value="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}" /> |
| 86 | + <Style.Triggers> |
| 87 | + <DataTrigger |
| 88 | + Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Button}}, Path=IsMouseOver}" |
| 89 | + Value="True"> |
| 90 | + <Setter Property="Fill" |
| 91 | + Value="{DynamicResource ResourceKey=MahApps.Brushes.Gray5}" /> |
| 92 | + </DataTrigger> |
| 93 | + </Style.Triggers> |
| 94 | + </Style> |
| 95 | + </Rectangle.Style> |
| 96 | + </Rectangle> |
| 97 | + </Button> |
| 98 | + <TextBox Width="250" |
| 99 | + Text="{Binding Path=Search, UpdateSourceTrigger=PropertyChanged}" |
| 100 | + Style="{StaticResource ResourceKey=SearchTextBox}" /> |
| 101 | + </StackPanel> |
| 102 | + </Grid> |
93 | 103 | <controls:MultiSelectDataGrid x:Name="DataGridArpTable" |
94 | 104 | Grid.Column="0" Grid.Row="2" |
95 | 105 | ItemsSource="{Binding ResultsView}" |
|
177 | 187 | </controls:MultiSelectDataGrid.Columns> |
178 | 188 | </controls:MultiSelectDataGrid> |
179 | 189 | <WrapPanel Grid.Column="0" Grid.Row="4" Orientation="Horizontal" |
180 | | - VerticalAlignment="Center" |
181 | | - HorizontalAlignment="Left"> |
| 190 | + VerticalAlignment="Center" |
| 191 | + HorizontalAlignment="Left"> |
182 | 192 | <networkManager:LoadingIndicator IsActive="True" |
183 | | - Style="{DynamicResource ResourceKey=LoadingIndicatorPulseStyle}" |
184 | | - Visibility="{Binding Path=IsRefreshing, Converter={StaticResource ResourceKey=BooleanToVisibilityCollapsedConverter}}" |
185 | | - Width="24" Height="24" |
186 | | - SpeedRatio="1" Margin="0,0,10,0" /> |
187 | | - <TextBlock Foreground="{DynamicResource MahApps.Brushes.Accent}" |
188 | | - Text="{Binding StatusMessage}" |
189 | | - VerticalAlignment="Center" |
190 | | - Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" |
191 | | - Style="{DynamicResource StatusMessageTextBlock}" /> |
| 193 | + Style="{DynamicResource ResourceKey=LoadingIndicatorPulseStyle}" |
| 194 | + Visibility="{Binding Path=IsRefreshing, Converter={StaticResource ResourceKey=BooleanToVisibilityCollapsedConverter}}" |
| 195 | + Width="24" Height="24" |
| 196 | + SpeedRatio="1" Margin="0,0,10,0" /> |
| 197 | + <TextBlock Style="{StaticResource ResourceKey=AccentTextBlock}" |
| 198 | + Visibility="{Binding Path=IsStatusMessageDisplayed, Converter={StaticResource ResourceKey=BooleanToVisibilityCollapsedConverter}}" |
| 199 | + Text="{Binding Path=StatusMessage}" |
| 200 | + VerticalAlignment="Center" /> |
192 | 201 | </WrapPanel> |
193 | 202 | <Grid Grid.Column="0" Grid.Row="6"> |
194 | 203 | <Grid.ColumnDefinitions> |
|
0 commit comments