|
657 | 657 | ToolTip="Change Plugin Results Priority"
|
658 | 658 | Margin="5 0 0 0" Cursor="Hand"
|
659 | 659 | Click="OnPluginPriorityClick">
|
660 |
| - <!--#region Priority Button Style--> |
| 660 | + <!--#region Priority Button Style--> |
661 | 661 | <Button.Resources>
|
662 | 662 | <Style TargetType="Border">
|
663 | 663 | <Setter Property="CornerRadius" Value="2"/>
|
664 | 664 | </Style>
|
665 | 665 | </Button.Resources>
|
666 | 666 | <Button.Style>
|
667 |
| - <Style TargetType="Button"> |
668 |
| - <Setter Property="Padding" Value="12 8 12 8" /> |
669 |
| - <Setter Property="BorderThickness" Value="0" /> |
670 |
| - <Setter Property="FontWeight" Value="DemiBold" /> |
671 |
| - <Setter Property="Foreground" Value="Black" /> |
| 667 | + <Style TargetType="Button"> |
| 668 | + <Setter Property="Padding" Value="12 8 12 8" /> |
| 669 | + <Setter Property="BorderThickness" Value="0" /> |
| 670 | + <Setter Property="FontWeight" Value="DemiBold" /> |
| 671 | + <Setter Property="Foreground" Value="Black" /> |
672 | 672 | <Style.Triggers>
|
673 | 673 | <DataTrigger Binding="{Binding ElementName=PriorityButton, UpdateSourceTrigger=PropertyChanged, Path=Content}" Value="0">
|
674 | 674 | <Setter Property="Foreground" Value="#878787" />
|
675 | 675 | <Setter Property="FontWeight" Value="Normal" />
|
676 | 676 | </DataTrigger>
|
677 | 677 | </Style.Triggers>
|
678 |
| - </Style> |
679 |
| - </Button.Style> |
680 |
| - <!--#endregion--> |
681 |
| - </Button> |
| 678 | + </Style> |
| 679 | + </Button.Style> |
| 680 | + <!--#endregion--> |
| 681 | + </Button> |
682 | 682 | </Border>
|
683 | 683 | </StackPanel>
|
684 | 684 | <ui:ToggleSwitch Grid.Column="4" OffContent="{DynamicResource disable}"
|
|
703 | 703 | Style="{DynamicResource SettingTitleLabel}"
|
704 | 704 | Margin="0 0 0 0" VerticalAlignment="Center" HorizontalAlignment="Left" DockPanel.Dock="Left"/>
|
705 | 705 |
|
706 |
| - |
707 |
| - <Button Grid.Column="2" Content="{Binding ActionKeywordsText}" |
| 706 | + |
| 707 | + <Button Grid.Column="2" Content="{Binding ActionKeywordsText}" |
708 | 708 | DockPanel.Dock="Right"
|
709 | 709 | Visibility="{Binding ActionKeywordsVisibility}"
|
710 | 710 | ToolTip="Change Action Keywords"
|
711 | 711 | Margin="5 0 0 0" Cursor="Hand" FontWeight="Bold"
|
712 | 712 | Click="OnPluginActionKeywordsClick" HorizontalAlignment="Right"
|
713 | 713 | Width="100" Height="40">
|
714 |
| - |
| 714 | + |
715 | 715 | <Button.Resources>
|
716 | 716 | <Style TargetType="Border">
|
717 | 717 | <Setter Property="CornerRadius" Value="2"/>
|
|
730 | 730 |
|
731 | 731 | <StackPanel>
|
732 | 732 |
|
733 |
| - |
| 733 | + |
734 | 734 | <Border Background="White" Padding="0"
|
735 | 735 | BorderThickness="0 1 0 0" BorderBrush="#e6e6e6"
|
736 | 736 | VerticalAlignment="Center" HorizontalAlignment="Stretch">
|
|
753 | 753 | Content="{Binding SettingControl}"
|
754 | 754 | Padding="1" Margin="0" VerticalAlignment="Stretch"
|
755 | 755 | MaxWidth="750" MaxHeight="550">
|
756 |
| - </ContentControl> |
757 |
| - |
| 756 | + </ContentControl> |
| 757 | + |
758 | 758 | </StackPanel>
|
759 | 759 |
|
760 | 760 | <StackPanel>
|
|
794 | 794 | MouseUp="OnPluginDirecotyClick" Foreground="Blue"
|
795 | 795 | HorizontalAlignment="Right" FontSize="12" VerticalAlignment="Center"/>
|
796 | 796 | </StackPanel>
|
797 |
| - |
| 797 | + |
798 | 798 | </ItemsControl>
|
799 | 799 | </Border>
|
800 | 800 |
|
|
840 | 840 | </Border>
|
841 | 841 | <Border Grid.Column="0" Grid.Row="1" Background="#f3f3f3" Padding="0 0 0 0">
|
842 | 842 | <ListBox x:Name="StoreListBox"
|
843 |
| - ItemsSource="{Binding PluginViewModels}" |
| 843 | + ItemsSource="{Binding ExternalPlugins}" |
844 | 844 | Margin="6, 0, 0, 0" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
845 | 845 | ItemContainerStyle="{StaticResource StoreList}"
|
846 | 846 | ScrollViewer.IsDeferredScrollingEnabled="True" ScrollViewer.CanContentScroll="False"
|
|
849 | 849 | <ItemsPanelTemplate>
|
850 | 850 | <UniformGrid IsItemsHost="True" HorizontalAlignment="Left" Columns="2" Margin="0 0 12 18" VerticalAlignment="Top" />
|
851 | 851 | </ItemsPanelTemplate>
|
852 |
| - |
853 |
| - |
854 |
| - |
| 852 | + |
| 853 | + |
| 854 | + |
855 | 855 | </ListBox.ItemsPanel>
|
856 | 856 | <ListBox.ItemTemplate>
|
857 | 857 | <DataTemplate>
|
|
874 | 874 | </Style.Triggers>
|
875 | 875 | </Style>
|
876 | 876 | </StackPanel.Style>
|
877 |
| - <Image Source="{Binding Image, IsAsync=True}" |
878 |
| - Width="32" Height="32" Margin="8 0 6 0" |
879 |
| - VerticalAlignment="Center"/> |
880 |
| - </StackPanel> |
| 877 | + <Image Source="{Binding IcoPath, IsAsync=True}" |
| 878 | + Width="32" Height="32" Margin="8 0 6 0" |
| 879 | + VerticalAlignment="Center"/> |
| 880 | + </StackPanel> |
881 | 881 | <StackPanel Grid.Column="1" Margin="0 0 8 0" VerticalAlignment="Center" Panel.ZIndex="0">
|
882 | 882 | <StackPanel.Style>
|
883 | 883 | <Style>
|
|
889 | 889 | </Style.Triggers>
|
890 | 890 | </Style>
|
891 | 891 | </StackPanel.Style>
|
892 |
| - <TextBlock Text="{Binding PluginPair.Metadata.Name}" |
| 892 | + <TextBlock Text="{Binding Name}" |
893 | 893 | TextWrapping="WrapWithOverflow" Padding="0 0 20 0"
|
894 |
| - ToolTip="{Binding PluginPair.Metadata.Version}" /> |
| 894 | + ToolTip="{Binding Version}" /> |
895 | 895 | <TextBlock Opacity="0.5" TextWrapping="WrapWithOverflow" Margin="0 2 0 0" Padding="0 0 20 0">
|
896 |
| - <Run Text="{Binding PluginPair.Metadata.Description}" FontSize="12" /> |
| 896 | + <Run Text="{Binding Description}" FontSize="12" /> |
897 | 897 | </TextBlock>
|
898 | 898 |
|
899 | 899 | </StackPanel >
|
|
917 | 917 | <Grid.ColumnDefinitions>
|
918 | 918 | <ColumnDefinition Width="{Binding ActualWidth,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}" />
|
919 | 919 | </Grid.ColumnDefinitions>
|
920 |
| - |
| 920 | + |
921 | 921 | <StackPanel Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Stretch">
|
922 | 922 | <StackPanel Orientation="Horizontal">
|
923 |
| - <TextBlock Text="{Binding PluginPair.Metadata.Name}" FontWeight="Bold" |
| 923 | + <TextBlock Text="{Binding Name}" FontWeight="Bold" |
924 | 924 | TextWrapping="WrapWithOverflow" Padding="0 0 0 0" Margin="20 0 0 0"
|
925 |
| - ToolTip="{Binding PluginPair.Metadata.Name}" /> |
926 |
| - <TextBlock Text="{Binding PluginPair.Metadata.Version}" |
| 925 | + ToolTip="{Binding Name}" /> |
| 926 | + <TextBlock Text="{Binding Version}" |
927 | 927 | TextWrapping="WrapWithOverflow" Padding="0 0 20 0" Margin="10 0 0 0"
|
928 |
| - ToolTip="{Binding PluginPair.Metadata.Version}" /> |
| 928 | + ToolTip="{Binding Version}" /> |
929 | 929 | </StackPanel>
|
930 | 930 | <TextBlock Opacity="0.5" TextWrapping="Wrap" Margin="20 2 0 0" Padding="0 0 20 0" >
|
931 |
| - <Run Text="{Binding PluginPair.Metadata.Author}" FontSize="12" /> |
| 931 | + <Run Text="{Binding Author}" FontSize="12" /> |
932 | 932 | </TextBlock>
|
933 | 933 | </StackPanel>
|
934 | 934 |
|
|
0 commit comments