|
806 | 806 | -->
|
807 | 807 | </Grid>
|
808 | 808 | </TabItem>
|
| 809 | + |
| 810 | + <TabItem> |
| 811 | + <TabItem.Header> |
| 812 | + <Grid> |
| 813 | + <Grid.ColumnDefinitions> |
| 814 | + <ColumnDefinition Width="Auto" /> |
| 815 | + <ColumnDefinition /> |
| 816 | + </Grid.ColumnDefinitions> |
| 817 | + <TextBlock Grid.Column="0" FontFamily="/Resources/#Segoe Fluent Icons" FontSize="20" |
| 818 | + Margin="0 0 12 0"> |
| 819 | +  |
| 820 | + </TextBlock> |
| 821 | + <TextBlock Grid.Column="1" Text="Plugin Store" /> |
| 822 | + </Grid> |
| 823 | + </TabItem.Header> |
| 824 | + |
| 825 | + <Grid> |
| 826 | + <Grid.ColumnDefinitions> |
| 827 | + <ColumnDefinition></ColumnDefinition> |
| 828 | + </Grid.ColumnDefinitions> |
| 829 | + <Grid.RowDefinitions> |
| 830 | + <RowDefinition Height="74"></RowDefinition> |
| 831 | + <RowDefinition Height="*"></RowDefinition> |
| 832 | + </Grid.RowDefinitions> |
| 833 | + <Border Grid.Row="0" Background="#f3f3f3" Padding="5 18 0 0"> |
| 834 | + <TextBlock Text="Plugin Store" TextAlignment="left" FontSize="30" Margin="0 5 0 5"/> |
| 835 | + </Border> |
| 836 | + <Border Grid.Column="0" Grid.Row="1" Background="#f3f3f3"> |
| 837 | + <ListBox SelectedItem="{Binding SelectedPlugin}" |
| 838 | + ItemsSource="{Binding PluginViewModels}" |
| 839 | + Margin="6, 0, 0, 0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
| 840 | + ItemContainerStyle="{StaticResource PluginList}" |
| 841 | + ScrollViewer.IsDeferredScrollingEnabled="True" ScrollViewer.CanContentScroll="False" |
| 842 | + Padding="0 0 0 18" Width="Auto" HorizontalAlignment="Stretch"> |
| 843 | + |
| 844 | + <ListBox.ItemTemplate> |
| 845 | + <DataTemplate> |
| 846 | + <Expander Grid.Column="4" x:Name="expanderHeader" |
| 847 | + IsExpanded="{Binding Mode=TwoWay, Path=IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem, Mode=FindAncestor}}" |
| 848 | + FlowDirection="RightToLeft" Background="Transparent" Padding="0" |
| 849 | + Style="{StaticResource ExpanderStyle1}"> |
| 850 | + <Expander.Header> |
| 851 | + <Grid FlowDirection="LeftToRight" HorizontalAlignment="Left" |
| 852 | + Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Expander}}, Path=ActualWidth}"> |
| 853 | + <Grid.ColumnDefinitions> |
| 854 | + <ColumnDefinition Width="100" MinWidth="100" /> |
| 855 | + <ColumnDefinition Width="*" MinWidth="350" MaxWidth="700" /> |
| 856 | + <ColumnDefinition MaxWidth="1400" /> |
| 857 | + <ColumnDefinition Width="100" /> |
| 858 | + <ColumnDefinition Width="80" /> |
| 859 | + </Grid.ColumnDefinitions> |
| 860 | + <StackPanel FlowDirection="LeftToRight" Grid.Column="0" Margin="24 0 0 0" |
| 861 | + VerticalAlignment="Center"> |
| 862 | + <Image Source="{Binding Image, IsAsync=True}" |
| 863 | + Width="32" Height="32" Margin="32 0 0 0" |
| 864 | + FlowDirection="LeftToRight" /> |
| 865 | + </StackPanel> |
| 866 | + <StackPanel Grid.Column="1" Margin="12 0 14 0"> |
| 867 | + <TextBlock Text="{Binding PluginPair.Metadata.Name}" |
| 868 | + TextWrapping="Wrap" |
| 869 | + ToolTip="{Binding PluginPair.Metadata.Version}" /> |
| 870 | + <TextBlock Opacity="0.5" TextWrapping="Wrap" Margin="0 2 0 0"> |
| 871 | + <Run Text="{Binding PluginPair.Metadata.Description}" FontSize="12" /> |
| 872 | + </TextBlock> |
| 873 | + </StackPanel> |
| 874 | + <StackPanel Grid.Column="3" Orientation="Horizontal"> |
| 875 | + <TextBlock Text="{DynamicResource priority}" Margin="0,0,8,0" |
| 876 | + MaxWidth="100" VerticalAlignment="Center" FontSize="12"/> |
| 877 | + <Border CornerRadius="5"> |
| 878 | + <Button x:Name="PriorityButton" Content="{Binding Priority, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" |
| 879 | + ToolTip="Change Plugin Results Priority" |
| 880 | + Margin="5 0 0 0" Cursor="Hand" |
| 881 | + Click="OnPluginPriorityClick"> |
| 882 | + <!--#region Priority Button Style--> |
| 883 | + <Button.Resources> |
| 884 | + <Style TargetType="Border"> |
| 885 | + <Setter Property="CornerRadius" Value="2"/> |
| 886 | + </Style> |
| 887 | + </Button.Resources> |
| 888 | + <Button.Style> |
| 889 | + <Style TargetType="Button"> |
| 890 | + <Setter Property="Padding" Value="12 8 12 8" /> |
| 891 | + <Setter Property="BorderThickness" Value="0" /> |
| 892 | + <Setter Property="FontWeight" Value="DemiBold" /> |
| 893 | + <Setter Property="Foreground" Value="Black" /> |
| 894 | + <Style.Triggers> |
| 895 | + <DataTrigger Binding="{Binding ElementName=PriorityButton, UpdateSourceTrigger=PropertyChanged, Path=Content}" Value="0"> |
| 896 | + <Setter Property="Foreground" Value="#878787" /> |
| 897 | + <Setter Property="FontWeight" Value="Normal" /> |
| 898 | + </DataTrigger> |
| 899 | + </Style.Triggers> |
| 900 | + </Style> |
| 901 | + </Button.Style> |
| 902 | + <!--#endregion--> |
| 903 | + </Button> |
| 904 | + </Border> |
| 905 | + </StackPanel> |
| 906 | + <ui:ToggleSwitch Grid.Column="4" OffContent="{DynamicResource disable}" |
| 907 | + OnContent="{DynamicResource enable}" |
| 908 | + MaxWidth="110" HorizontalAlignment="Right" |
| 909 | + IsOn="{Binding PluginState}" /> |
| 910 | + </Grid> |
| 911 | + |
| 912 | + </Expander.Header> |
| 913 | + |
| 914 | + <Grid FlowDirection="LeftToRight"> |
| 915 | + <StackPanel Orientation="Vertical" Margin="0 12 0 0"> |
| 916 | + <StackPanel> |
| 917 | + <Border Style="{DynamicResource SettingGroupBox}" |
| 918 | + Visibility="{Binding ActionKeywordsVisibility}" Height="52" Padding="0" |
| 919 | + Width="auto" BorderThickness="0 1 0 0" CornerRadius="0"> |
| 920 | + <ItemsControl VerticalAlignment="Center" Padding="22 0 18 0"> |
| 921 | + <DockPanel> |
| 922 | + <TextBlock FontFamily="/Resources/#Segoe Fluent Icons" FontSize="20" DockPanel.Dock="Left" |
| 923 | + VerticalAlignment="Center" Margin="48 0 10 0"></TextBlock> |
| 924 | + <TextBlock Grid.Column="0" Text="{DynamicResource actionKeywords}" |
| 925 | + Style="{DynamicResource SettingTitleLabel}" |
| 926 | + Margin="0 0 0 0" VerticalAlignment="Center" HorizontalAlignment="Left" DockPanel.Dock="Left"/> |
| 927 | + |
| 928 | + |
| 929 | + <Button Grid.Column="2" Content="{Binding ActionKeywordsText}" |
| 930 | + DockPanel.Dock="Right" |
| 931 | + Visibility="{Binding ActionKeywordsVisibility}" |
| 932 | + ToolTip="Change Action Keywords" |
| 933 | + Margin="5 0 0 0" Cursor="Hand" FontWeight="Bold" |
| 934 | + Click="OnPluginActionKeywordsClick" HorizontalAlignment="Right" |
| 935 | + Width="100" Height="40"> |
| 936 | + |
| 937 | + <Button.Resources> |
| 938 | + <Style TargetType="Border"> |
| 939 | + <Setter Property="CornerRadius" Value="2"/> |
| 940 | + <Setter Property="BorderThickness" Value="1 1 1 2"/> |
| 941 | + <Setter Property="BorderBrush" Value="#ececec"/> |
| 942 | + <Setter Property="Background" Value="#ffffff"/> |
| 943 | + |
| 944 | + </Style> |
| 945 | + </Button.Resources> |
| 946 | + </Button> |
| 947 | + </DockPanel> |
| 948 | + |
| 949 | + </ItemsControl> |
| 950 | + </Border> |
| 951 | + </StackPanel> |
| 952 | + |
| 953 | + <StackPanel> |
| 954 | + |
| 955 | + |
| 956 | + <Border Background="White" Padding="0" |
| 957 | + BorderThickness="0 1 0 0" BorderBrush="#e6e6e6" |
| 958 | + VerticalAlignment="Center" HorizontalAlignment="Stretch"> |
| 959 | + <!--#region SubInfo Styling --> |
| 960 | + <Border.Style> |
| 961 | + <Style TargetType="{x:Type Border}"> |
| 962 | + <Setter Property="Visibility" Value="Visible" /> |
| 963 | + <Style.Triggers> |
| 964 | + <DataTrigger Binding="{Binding ElementName=SettingControl, Path=ActualHeight}" Value="0"> |
| 965 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 966 | + <Setter Property="BorderThickness" Value="0" /> |
| 967 | + <Setter Property="Padding" Value="0" /> |
| 968 | + </DataTrigger> |
| 969 | + </Style.Triggers> |
| 970 | + </Style> |
| 971 | + </Border.Style> |
| 972 | + </Border> |
| 973 | + <!--#endregion--> |
| 974 | + <ContentControl x:Name="SettingControl" |
| 975 | + Content="{Binding SettingControl}" |
| 976 | + Padding="1" Margin="0" VerticalAlignment="Stretch" |
| 977 | + MaxWidth="750" MaxHeight="550"> |
| 978 | + </ContentControl> |
| 979 | + |
| 980 | + </StackPanel> |
| 981 | + |
| 982 | + <StackPanel> |
| 983 | + <Border Style="{DynamicResource SettingGroupBox}" CornerRadius="0" |
| 984 | + Visibility="{Binding ActionKeywordsVisibility}" |
| 985 | + VerticalAlignment="Center" Margin="0" BorderThickness="0 1 0 0" |
| 986 | + Padding="0 12 0 0" > |
| 987 | + <ItemsControl Style="{DynamicResource SettingGrid}"> |
| 988 | + <StackPanel Style="{StaticResource TextPanel}" |
| 989 | + Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 -14 0"> |
| 990 | + <TextBlock Text="{DynamicResource author}" |
| 991 | + FontSize="11" Margin="10 0 0 0" MaxWidth="100" Foreground="#8F8F8F" /> |
| 992 | + <TextBlock Text="{Binding PluginPair.Metadata.Author}" FontSize="11" Foreground="#8F8F8F" |
| 993 | + Margin="5 0 0 0" MaxWidth="100" /> |
| 994 | + <TextBlock Text="|" |
| 995 | + FontSize="11" Margin="5 0 0 0" MaxWidth="100" Foreground="#8F8F8F" |
| 996 | + VerticalAlignment="Center" /> |
| 997 | + <TextBlock Text="{DynamicResource plugin_init_time}" |
| 998 | + FontSize="11" Margin="10 0 0 0" MaxWidth="100" Foreground="#8F8F8F" /> |
| 999 | + <TextBlock Text="{Binding InitilizaTime}" FontSize="11" Foreground="#8F8F8F" |
| 1000 | + Margin="5 0 0 0" MaxWidth="100" /> |
| 1001 | + <TextBlock Text="|" |
| 1002 | + FontSize="11" Margin="5 0 0 0" MaxWidth="100" Foreground="#8F8F8F" |
| 1003 | + VerticalAlignment="Center" /> |
| 1004 | + <TextBlock Text="{DynamicResource plugin_query_time}" |
| 1005 | + FontSize="11" Margin="5 0 0 0" MaxWidth="100" Foreground="#8F8F8F" /> |
| 1006 | + <TextBlock Text="{Binding QueryTime}" FontSize="11" Foreground="#8F8F8F" |
| 1007 | + Margin="5 0 0 0" MaxWidth="100" /> |
| 1008 | + <TextBlock Text="| version" |
| 1009 | + FontSize="11" Margin="5 0 0 0" MaxWidth="100" Foreground="#8F8F8F" |
| 1010 | + VerticalAlignment="Center" /> |
| 1011 | + <TextBlock Text="{Binding PluginPair.Metadata.Version}" Foreground="#8F8F8F" |
| 1012 | + FontSize="11" Margin="5 0 0 0" MaxWidth="100" |
| 1013 | + VerticalAlignment="Center" /> |
| 1014 | + <TextBlock Text="{DynamicResource pluginDirectory}" |
| 1015 | + MaxWidth="120" Cursor="Hand" Margin="10,0,0,0" |
| 1016 | + MouseUp="OnPluginDirecotyClick" Foreground="Blue" |
| 1017 | + HorizontalAlignment="Right" FontSize="12" VerticalAlignment="Center"/> |
| 1018 | + </StackPanel> |
| 1019 | + |
| 1020 | + </ItemsControl> |
| 1021 | + </Border> |
| 1022 | + |
| 1023 | + </StackPanel> |
| 1024 | + </StackPanel> |
| 1025 | + </Grid> |
| 1026 | + </Expander> |
| 1027 | + |
| 1028 | + </DataTemplate> |
| 1029 | + </ListBox.ItemTemplate> |
| 1030 | + </ListBox> |
| 1031 | + </Border> |
| 1032 | + </Grid> |
| 1033 | + </TabItem> |
| 1034 | + |
809 | 1035 | <TabItem>
|
810 | 1036 | <TabItem.Header>
|
811 | 1037 | <Grid>
|
|
0 commit comments