|
20 | 20 | <!-- <ui:SharedImageControl x:Key="SharedImage" /> --> |
21 | 21 | <controls:UrlConverter x:Key="urlConverter" /> |
22 | 22 | <controls:UnitStringConverter x:Key="unitConverter" /> |
| 23 | + <controls:ImageDimensionConverter x:Key="imgConverter" /> |
23 | 24 |
|
24 | 25 | <converters:BooleanToBrushConverter x:Key="BooleanToBrushConverter"> |
25 | 26 | <converters:BooleanToBrushConverter.TrueBrush> |
|
549 | 550 | <TextBox x:Name="Tb_Info_Size" HorizontalAlignment="Left" Margin="217,65,0,0" TextWrapping="Wrap" |
550 | 551 | VerticalAlignment="Top" Width="130" IsReadOnly="True" Height="20" Background="Black" |
551 | 552 | Foreground="White" TextAlignment="Center" |
552 | | - Text="{Binding CurrentQuery.Query.Uni.Stream.Length, ElementName=Wnd_Main, IsAsync=True, Mode=OneWay, |
| 553 | + Text="{Binding CurrentQuery.Query.Size, ElementName=Wnd_Main, IsAsync=True, Mode=OneWay, |
553 | 554 | UpdateSourceTrigger=PropertyChanged, FallbackValue={x:Null}, Converter={StaticResource unitConverter}}" /> |
554 | 555 |
|
555 | 556 | <TextBox x:Name="Tb_Info_Dim" HorizontalAlignment="Left" Margin="369,65,0,0" TextWrapping="Wrap" |
556 | 557 | VerticalAlignment="Top" Width="130" IsReadOnly="True" Height="20" Background="Black" |
557 | 558 | Foreground="White" TextAlignment="Center" |
558 | 559 | Text="{Binding CurrentQuery.DimensionString, ElementName=Wnd_Main, IsAsync=True, Mode=OneWay, |
559 | 560 | UpdateSourceTrigger=PropertyChanged}" /> |
| 561 | + |
560 | 562 | <Image x:Name="Img_Status" HorizontalAlignment="Left" Height="20px" Width="20px" |
561 | 563 | Margin="10,5,0,0" |
562 | 564 | VerticalAlignment="Top" Stretch="None" Grid.Row="1" /> |
| 565 | + |
563 | 566 | <ListView x:Name="Lv_Results" Margin="0,120,0,0" |
564 | 567 | MouseDoubleClick="Lv_Results_MouseDoubleClick" |
565 | 568 | Foreground="White" |
|
664 | 667 |
|
665 | 668 | <TextBlock x:Name="Tb_Status" HorizontalAlignment="Left" Margin="30,96,0,0" |
666 | 669 | VerticalAlignment="Top" Foreground="White" FontStyle="Italic" |
667 | | - Text="{Binding CurrentQuery.Status, UpdateSourceTrigger=PropertyChanged, ElementName=Wnd_Main}" Grid.Column="1" Grid.Row="1" /> |
| 670 | + Text="{Binding CurrentQuery.Status, UpdateSourceTrigger=PropertyChanged, ElementName=Wnd_Main}" |
| 671 | + Grid.Column="1" Grid.Row="1" /> |
668 | 672 |
|
669 | 673 | <!-- |
670 | 674 | <TextBlock x:Name="Tb_Status2" HorizontalAlignment="Left" Margin="95,28,0,0" |
|
706 | 710 |
|
707 | 711 | <Label x:Name="Lb_SelMainUrl" Content="Item" HorizontalAlignment="Left" Margin="4,59,0,0" |
708 | 712 | VerticalAlignment="Top" Height="26" Foreground="White" |
709 | | - Background="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" Width="55" HorizontalContentAlignment="Center" |
| 713 | + Background="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" Width="55" |
| 714 | + HorizontalContentAlignment="Center" |
710 | 715 | Grid.Row="1" FontWeight="Bold" /> |
711 | 716 |
|
712 | 717 | <TextBox x:Name="Tb_SelMainUrl" HorizontalAlignment="Left" Margin="64,61,0,0" |
713 | | - VerticalAlignment="Top" Width="435" IsReadOnly="True" Height="20" Foreground="White" Background="Black" |
714 | | - Text="{Binding CurrentResult.Result.Url, Converter={StaticResource urlConverter}, ElementName=Wnd_Main, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" |
| 718 | + VerticalAlignment="Top" Width="435" IsReadOnly="True" Height="20" Foreground="White" |
| 719 | + Background="Black" |
| 720 | + Text="{Binding CurrentResult.Result.Url, Converter={StaticResource urlConverter}, ElementName=Wnd_Main, Mode=OneWay, |
| 721 | + UpdateSourceTrigger=PropertyChanged}" |
| 722 | + ToolTip="Preview result URL" |
715 | 723 | Grid.Row="1" MouseDoubleClick="Tb_SelUrl_MouseDoubleClick" /> |
716 | 724 |
|
717 | 725 | <Label x:Name="Lb_SelInfo" Content="Info" HorizontalAlignment="Left" Margin="4,87,0,0" |
718 | 726 | VerticalAlignment="Top" Height="26" FontWeight="Bold" Foreground="White" |
719 | | - Background="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" HorizontalContentAlignment="Center" Width="55" |
| 727 | + Background="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" |
| 728 | + HorizontalContentAlignment="Center" Width="55" |
720 | 729 | Grid.Row="1" /> |
721 | 730 |
|
722 | | - <TextBox x:Name="Tb_SelInfo_Type" HorizontalAlignment="Left" Margin="64,89,0,0" TextWrapping="Wrap" |
| 731 | + <TextBox x:Name="Tb_SelInfo_Info" HorizontalAlignment="Left" Margin="64,89,0,0" TextWrapping="Wrap" |
723 | 732 | VerticalAlignment="Top" Width="130" IsReadOnly="True" Height="20" Background="Black" |
724 | 733 | Foreground="White" TextAlignment="Center" |
725 | | - Text="{Binding CurrentResult.Status, ElementName=Wnd_Main, FallbackValue={x:Null}, IsAsync=True, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" |
| 734 | + Text="{Binding CurrentResult.Status, ElementName=Wnd_Main, FallbackValue={x:Null}, IsAsync=True, Mode=OneWay, |
| 735 | + UpdateSourceTrigger=PropertyChanged}" |
| 736 | + ToolTip="Preview image info" |
726 | 737 | Grid.Row="1" /> |
727 | 738 |
|
728 | 739 | <TextBox x:Name="Tb_SelInfo_Size" HorizontalAlignment="Left" Margin="217,89,0,0" |
729 | 740 | TextWrapping="Wrap" |
730 | 741 | VerticalAlignment="Top" Width="130" IsReadOnly="True" Height="20" Background="Black" |
731 | 742 | Foreground="White" TextAlignment="Center" |
732 | | - Text="..." |
| 743 | + Text="{Binding CurrentResult.Size, Converter={StaticResource unitConverter}, FallbackValue={x:Null}, Mode=OneWay, IsAsync=True, |
| 744 | + UpdateSourceTrigger=PropertyChanged}" |
| 745 | + ToolTip="Preview image size" |
733 | 746 | Grid.Row="1" /> |
734 | 747 |
|
735 | 748 | <TextBox x:Name="Tb_SelInfo_Dim" HorizontalAlignment="Left" Margin="369,89,0,0" TextWrapping="Wrap" |
736 | 749 | VerticalAlignment="Top" Width="130" IsReadOnly="True" Height="20" Background="Black" |
737 | 750 | Foreground="White" TextAlignment="Center" |
738 | | - Text="{Binding CurrentResult.DimensionString, ElementName=Wnd_Main, IsAsync=True, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" |
| 751 | + Text="{Binding CurrentResult.DimensionString, ElementName=Wnd_Main, IsAsync=True, Mode=OneWay, FallbackValue={x:Null}, |
| 752 | + UpdateSourceTrigger=PropertyChanged}" |
| 753 | + ToolTip="Preview image dimensions" |
739 | 754 | Grid.Row="1" /> |
740 | 755 |
|
741 | 756 | <Label x:Name="Lb_SelPrevUrl" Content="Preview" HorizontalAlignment="Left" Margin="4,31,0,0" |
742 | | - VerticalAlignment="Top" Height="26" Foreground="White" |
743 | | - Background="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" Width="55" HorizontalContentAlignment="Center" |
744 | | - Grid.Row="1" FontWeight="Bold" /> |
| 757 | + VerticalAlignment="Top" Height="26" Foreground="White" |
| 758 | + Background="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" Width="55" |
| 759 | + HorizontalContentAlignment="Center" |
| 760 | + Grid.Row="1" FontWeight="Bold" /> |
745 | 761 |
|
746 | 762 | <TextBox x:Name="Tb_SelPrevUrl" HorizontalAlignment="Left" Margin="64,34,0,0" |
747 | | - VerticalAlignment="Top" Width="434" IsReadOnly="True" Height="20" Foreground="White" Background="Black" |
748 | | - Text="{Binding CurrentResult.Result.Thumbnail, Converter={StaticResource urlConverter}, ElementName=Wnd_Main, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" |
749 | | - Grid.Row="1" MouseDoubleClick="Tb_SelPrevUrl_MouseDoubleClick" /> |
| 763 | + VerticalAlignment="Top" Width="434" IsReadOnly="True" Height="20" Foreground="White" |
| 764 | + Background="Black" |
| 765 | + Text="{Binding CurrentResult.Result.Thumbnail, Converter={StaticResource urlConverter}, ElementName=Wnd_Main, Mode=OneWay, |
| 766 | + UpdateSourceTrigger=PropertyChanged}" |
| 767 | + ToolTip="Preview image URL" |
| 768 | + Grid.Row="1" MouseDoubleClick="Tb_SelPrevUrl_MouseDoubleClick" /> |
750 | 769 |
|
751 | 770 | </Grid> |
752 | 771 | </TabItem> |
|
0 commit comments