|
242 | 242 | </MenuItem.Icon> |
243 | 243 | </MenuItem> |
244 | 244 | </MenuItem> |
| 245 | + <MenuItem Header="{x:Static Member=localization:Strings.RDAPDots}"> |
| 246 | + <MenuItem.Icon> |
| 247 | + <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> |
| 248 | + <Rectangle.OpacityMask> |
| 249 | + <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> |
| 250 | + </Rectangle.OpacityMask> |
| 251 | + </Rectangle> |
| 252 | + </MenuItem.Icon> |
| 253 | + <MenuItem Header="{x:Static Member=localization:Strings.IPAddress}" |
| 254 | + Command="{Binding Path=PerformRDAPQueryCommand}" |
| 255 | + CommandParameter="{Binding SelectedResult.IPAddress}"> |
| 256 | + <MenuItem.Style> |
| 257 | + <Style TargetType="{x:Type MenuItem}" BasedOn="{StaticResource MahApps.Styles.MenuItem}"> |
| 258 | + <Style.Triggers> |
| 259 | + <!-- Timed out hops have no IP address --> |
| 260 | + <DataTrigger Binding="{Binding SelectedResult.IPAddress}" Value="{x:Null}"> |
| 261 | + <Setter Property="IsEnabled" Value="False" /> |
| 262 | + </DataTrigger> |
| 263 | + </Style.Triggers> |
| 264 | + </Style> |
| 265 | + </MenuItem.Style> |
| 266 | + <MenuItem.Icon> |
| 267 | + <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> |
| 268 | + <Rectangle.OpacityMask> |
| 269 | + <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> |
| 270 | + </Rectangle.OpacityMask> |
| 271 | + </Rectangle> |
| 272 | + </MenuItem.Icon> |
| 273 | + </MenuItem> |
| 274 | + <MenuItem Header="{x:Static Member=localization:Strings.Hostname}" |
| 275 | + Command="{Binding Path=PerformRDAPQueryCommand}" |
| 276 | + CommandParameter="{Binding SelectedResult.Hostname}" |
| 277 | + IsEnabled="{Binding SelectedResult.Hostname, Converter={StaticResource ResourceKey=StringIsNotNullOrEmptyToBooleanConverter}}"> |
| 278 | + <MenuItem.Icon> |
| 279 | + <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> |
| 280 | + <Rectangle.OpacityMask> |
| 281 | + <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> |
| 282 | + </Rectangle.OpacityMask> |
| 283 | + </Rectangle> |
| 284 | + </MenuItem.Icon> |
| 285 | + </MenuItem> |
| 286 | + <MenuItem Header="{x:Static Member=localization:Strings.ASN}" |
| 287 | + Command="{Binding Path=PerformRDAPQueryCommand}" |
| 288 | + CommandParameter="{Binding SelectedResult.IPGeolocationResult.Info.As}" |
| 289 | + IsEnabled="{Binding SelectedResult.IPGeolocationResult.Info.As, Converter={StaticResource ResourceKey=StringIsNotNullOrEmptyToBooleanConverter}}"> |
| 290 | + <MenuItem.Icon> |
| 291 | + <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> |
| 292 | + <Rectangle.OpacityMask> |
| 293 | + <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> |
| 294 | + </Rectangle.OpacityMask> |
| 295 | + </Rectangle> |
| 296 | + </MenuItem.Icon> |
| 297 | + </MenuItem> |
| 298 | + </MenuItem> |
245 | 299 | <MenuItem Header="{x:Static Member=localization:Strings.RemoteDesktop}" |
246 | 300 | Command="{Binding RedirectDataToApplicationCommand}" |
247 | 301 | CommandParameter="{x:Static Member=models:ApplicationName.RemoteDesktop}"> |
|
302 | 356 | </Rectangle> |
303 | 357 | </MenuItem.Icon> |
304 | 358 | </MenuItem> |
305 | | - <MenuItem Header="{x:Static Member=localization:Strings.RDAP}" |
306 | | - Command="{Binding PerformRDAPQueryCommand}" |
307 | | - CommandParameter="{Binding SelectedResult.IPAddress}"> |
308 | | - <MenuItem.Style> |
309 | | - <Style TargetType="{x:Type MenuItem}" BasedOn="{StaticResource MahApps.Styles.MenuItem}"> |
310 | | - <Style.Triggers> |
311 | | - <!-- Timed out hops have no IP address --> |
312 | | - <DataTrigger Binding="{Binding SelectedResult.IPAddress}" Value="{x:Null}"> |
313 | | - <Setter Property="IsEnabled" Value="False" /> |
314 | | - </DataTrigger> |
315 | | - </Style.Triggers> |
316 | | - </Style> |
317 | | - </MenuItem.Style> |
318 | | - <MenuItem.Icon> |
319 | | - <Rectangle Width="16" Height="16" |
320 | | - Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> |
321 | | - <Rectangle.OpacityMask> |
322 | | - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> |
323 | | - </Rectangle.OpacityMask> |
324 | | - </Rectangle> |
325 | | - </MenuItem.Icon> |
326 | | - </MenuItem> |
327 | 359 | <Separator /> |
328 | 360 | <MenuItem Header="{x:Static Member=localization:Strings.CopyDots}" |
329 | 361 | Style="{StaticResource ResourceKey=CopyMenuItem}"> |
|
0 commit comments