|
296 | 296 | </Style> |
297 | 297 | </mahAppsControls:MetroProgressBar.Style> |
298 | 298 | </mahAppsControls:MetroProgressBar> |
299 | | - <Grid Grid.Row="2" Margin="0,10,0,0" |
300 | | - Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> |
301 | | - <Grid.ColumnDefinitions> |
302 | | - <ColumnDefinition Width="*" /> |
303 | | - <ColumnDefinition Width="Auto" /> |
304 | | - </Grid.ColumnDefinitions> |
305 | | - <TextBlock Grid.Column="0" Foreground="{DynamicResource MahApps.Brushes.Accent}" |
306 | | - Text="{Binding StatusMessage}" |
307 | | - Style="{DynamicResource StatusMessageTextBlock}" |
308 | | - VerticalAlignment="Center" /> |
309 | | - <Button Grid.Column="1" Margin="10,0,0,0" |
310 | | - Command="{Binding OpenInWhoisCommand}" |
311 | | - Content="{x:Static localization:Strings.OpenInWhois}" |
312 | | - Style="{StaticResource DefaultButton}" |
313 | | - Visibility="{Binding IsOpenInWhoisVisible, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" /> |
314 | | - </Grid> |
| 299 | + <TextBlock Grid.Row="2" Foreground="{DynamicResource MahApps.Brushes.Accent}" |
| 300 | + Text="{Binding StatusMessage}" |
| 301 | + Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" |
| 302 | + Style="{DynamicResource StatusMessageTextBlock}" Margin="0,10,0,0" /> |
315 | 303 | </Grid> |
316 | 304 | <Grid Grid.Row="2" |
317 | 305 | Visibility="{Binding IsResultVisible, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> |
|
382 | 370 | <TextBlock Grid.Row="2" |
383 | 371 | Foreground="{DynamicResource MahApps.Brushes.Gray3}" |
384 | 372 | Text="{x:Static localization:Strings.EnterAQueryToQueryRDAPDots}" |
385 | | - Visibility="{Binding IsResultVisible, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" |
386 | | - Style="{StaticResource HeaderTextBlock}" |
387 | 373 | VerticalAlignment="Center" |
388 | 374 | HorizontalAlignment="Center" |
389 | 375 | TextWrapping="Wrap" |
390 | 376 | TextAlignment="Center" |
391 | | - Margin="10" /> |
| 377 | + Margin="10"> |
| 378 | + <TextBlock.Style> |
| 379 | + <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource HeaderTextBlock}"> |
| 380 | + <Style.Triggers> |
| 381 | + <DataTrigger Binding="{Binding IsResultVisible}" Value="True"> |
| 382 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 383 | + </DataTrigger> |
| 384 | + <DataTrigger Binding="{Binding IsOpenInWhoisVisible}" Value="True"> |
| 385 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 386 | + </DataTrigger> |
| 387 | + </Style.Triggers> |
| 388 | + </Style> |
| 389 | + </TextBlock.Style> |
| 390 | + </TextBlock> |
| 391 | + <!-- No RDAP server known for the domain: offer to query it with Whois --> |
| 392 | + <StackPanel Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10" |
| 393 | + Visibility="{Binding IsOpenInWhoisVisible, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> |
| 394 | + <TextBlock Foreground="{DynamicResource MahApps.Brushes.Gray3}" |
| 395 | + Text="{x:Static localization:Strings.DomainCannotBeQueriedViaRDAPTryWhois}" |
| 396 | + Style="{StaticResource HeaderTextBlock}" |
| 397 | + HorizontalAlignment="Center" |
| 398 | + TextWrapping="Wrap" |
| 399 | + TextAlignment="Center" /> |
| 400 | + <Button Command="{Binding OpenInWhoisCommand}" |
| 401 | + Style="{StaticResource ImageWithTextButton}" |
| 402 | + HorizontalAlignment="Center"> |
| 403 | + <Button.Content> |
| 404 | + <Grid> |
| 405 | + <Grid.ColumnDefinitions> |
| 406 | + <ColumnDefinition Width="Auto" /> |
| 407 | + <ColumnDefinition Width="*" /> |
| 408 | + </Grid.ColumnDefinitions> |
| 409 | + <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> |
| 410 | + <Rectangle.OpacityMask> |
| 411 | + <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CloudSearchOutline}" /> |
| 412 | + </Rectangle.OpacityMask> |
| 413 | + </Rectangle> |
| 414 | + <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.OpenInWhois}" |
| 415 | + Style="{StaticResource ButtonWithImageTextBlock}" /> |
| 416 | + </Grid> |
| 417 | + </Button.Content> |
| 418 | + </Button> |
| 419 | + </StackPanel> |
392 | 420 | </Grid> |
393 | 421 | </UserControl> |
0 commit comments