|
884 | 884 | <Button Content="Refresh" FontSize="13" Margin="0 5 0 5" HorizontalAlignment="Right" Background="#ffffff" Padding="12 4 12 4" Height="34" BorderBrush="#cecece" BorderThickness="1 1 1 2"/>
|
885 | 885 | </Border>
|
886 | 886 | <Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Background="#f3f3f3" Padding="0 0 0 0">
|
887 |
| - <ListBox x:Name="StoreListBox" |
| 887 | + <ListBox x:Name="StoreListBox" |
888 | 888 | ItemsSource="{Binding ExternalPlugins}"
|
889 | 889 | Margin="6, 0, 0, 0" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
890 |
| - ItemContainerStyle="{StaticResource StoreList}" |
| 890 | + ItemContainerStyle="{StaticResource StoreList}" SelectionMode="Single" |
891 | 891 | ScrollViewer.IsDeferredScrollingEnabled="True" ScrollViewer.CanContentScroll="False"
|
892 | 892 | Padding="0 0 0 0" Width="Auto" VerticalContentAlignment="Center" HorizontalAlignment="Stretch">
|
893 | 893 | <ListBox.ItemsPanel>
|
894 | 894 | <ItemsPanelTemplate>
|
895 | 895 | <UniformGrid IsItemsHost="True" HorizontalAlignment="Left" Columns="2" Margin="0 0 6 18" VerticalAlignment="Top" SnapsToDevicePixels="True"/>
|
896 | 896 | </ItemsPanelTemplate>
|
897 |
| - |
898 |
| - |
899 |
| - |
900 | 897 | </ListBox.ItemsPanel>
|
901 | 898 | <ListBox.ItemTemplate>
|
902 | 899 | <DataTemplate>
|
903 | 900 | <!-- Hover Layout Style-->
|
904 |
| - <Border Padding="0" BorderBrush="Black" BorderThickness="0" Background="Transparent" > |
| 901 | + |
| 902 | + <ToggleButton IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}},Path=IsSelected}" Background="Transparent" |
| 903 | + Width="{Binding ActualWidth,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}" |
| 904 | + HorizontalAlignment="Left" HorizontalContentAlignment="left"> |
| 905 | + <ToggleButton.Template> |
| 906 | + <ControlTemplate TargetType="{x:Type ButtonBase}"> |
| 907 | + <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> |
| 908 | + <ControlTemplate.Triggers> |
| 909 | + </ControlTemplate.Triggers> |
| 910 | + </ControlTemplate> |
| 911 | + </ToggleButton.Template> |
| 912 | + <ToggleButton.Style> |
| 913 | + <Style TargetType="{x:Type ToggleButton}"> |
| 914 | + <Style.Triggers> |
| 915 | + <Trigger Property="IsChecked" Value="True"> |
| 916 | + </Trigger> |
| 917 | + </Style.Triggers> |
| 918 | + </Style> |
| 919 | + </ToggleButton.Style> |
| 920 | + |
905 | 921 | <Grid HorizontalAlignment="Left" VerticalAlignment="Stretch">
|
906 | 922 | <Grid.ColumnDefinitions>
|
907 | 923 | <ColumnDefinition Width="72"/>
|
|
911 | 927 | VerticalAlignment="Center" >
|
912 | 928 | <StackPanel.Style>
|
913 | 929 | <Style>
|
914 |
| - <Setter Property="StackPanel.Visibility" Value="Visible"></Setter> |
| 930 | + <Setter Property="StackPanel.Visibility" Value="Visible" /> |
915 | 931 | <Style.Triggers>
|
916 | 932 | <DataTrigger Binding="{Binding Mode=TwoWay, Path=IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem, Mode=FindAncestor}}" Value="true">
|
917 |
| - <Setter Property="StackPanel.Opacity" Value="1"></Setter> |
| 933 | + <Setter Property="StackPanel.Opacity" Value="1" /> |
918 | 934 | </DataTrigger>
|
919 | 935 | </Style.Triggers>
|
920 | 936 | </Style>
|
|
926 | 942 | <StackPanel Grid.Column="1" Margin="0 0 8 0" VerticalAlignment="Center" Panel.ZIndex="0">
|
927 | 943 | <StackPanel.Style>
|
928 | 944 | <Style>
|
929 |
| - <Setter Property="StackPanel.Visibility" Value="Visible"></Setter> |
| 945 | + <Setter Property="StackPanel.Visibility" Value="Visible" /> |
930 | 946 | <Style.Triggers>
|
931 | 947 | <DataTrigger Binding="{Binding Mode=TwoWay, Path=IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem, Mode=FindAncestor}}" Value="true">
|
932 |
| - <Setter Property="StackPanel.Opacity" Value="1"></Setter> |
| 948 | + <Setter Property="StackPanel.Opacity" Value="1" /> |
933 | 949 | </DataTrigger>
|
934 | 950 | </Style.Triggers>
|
935 | 951 | </Style>
|
|
945 | 961 | <StackPanel Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
946 | 962 | <StackPanel.Style>
|
947 | 963 | <Style>
|
948 |
| - <Setter Property="StackPanel.Visibility" Value="Collapsed"></Setter> |
| 964 | + <Setter Property="StackPanel.Visibility" Value="Collapsed" /> |
949 | 965 | <Style.Triggers>
|
950 | 966 | <DataTrigger Binding="{Binding Mode=TwoWay, Path=IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem, Mode=FindAncestor}}" Value="true">
|
951 |
| - <Setter Property="StackPanel.Visibility" Value="Visible"></Setter> |
| 967 | + <Setter Property="StackPanel.Visibility" Value="Visible" /> |
952 | 968 | </DataTrigger>
|
953 | 969 | </Style.Triggers>
|
954 | 970 | </Style>
|
955 | 971 | </StackPanel.Style>
|
956 | 972 |
|
957 | 973 |
|
958 |
| - <Grid Height="98" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Panel.ZIndex="1" Width="auto"> |
| 974 | + <Grid Height="94" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Panel.ZIndex="1"> |
959 | 975 | <Grid.Background>
|
960 | 976 | <SolidColorBrush Color="#f6f6f6" Opacity=".95"/>
|
961 | 977 | </Grid.Background>
|
|
974 | 990 | </StackPanel>
|
975 | 991 | <StackPanel Orientation="Vertical" Margin="20 2 120 0">
|
976 | 992 | <TextBlock TextWrapping="Wrap" Padding="0 0 0 0" >
|
977 |
| - <Hyperlink NavigateUri="{Binding PluginPair.Metadata.Website}" |
| 993 | + <Hyperlink NavigateUri="{Binding Website}" |
978 | 994 | RequestNavigate="OnRequestNavigate" Foreground="#5F5F5F">
|
979 | 995 | <Run Text="{Binding Author}" FontSize="12" />
|
980 | 996 | </Hyperlink>
|
981 | 997 | </TextBlock>
|
982 | 998 | </StackPanel>
|
983 | 999 | </StackPanel>
|
984 |
| - |
985 |
| - <Button Foreground="Black" Name="ShortCutButtonPrev" Content="Install" Width="90" MinHeight="40" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1" Margin="0 0 20 0"> |
986 |
| - </Button> |
| 1000 | + <Border Padding="0 0 20 0"> |
| 1001 | + <Button Foreground="Black" Name="ShortCutButtonPrev" Content="Install" Width="90" MinHeight="40" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1" Margin="0 0 0 0"> |
| 1002 | + </Button> |
| 1003 | + </Border> |
987 | 1004 | </Grid>
|
988 | 1005 | </StackPanel>
|
989 | 1006 | </Grid>
|
990 | 1007 |
|
991 |
| - |
992 |
| - </Border> |
993 |
| - |
994 |
| - |
| 1008 | + </ToggleButton> |
995 | 1009 | </DataTemplate>
|
996 | 1010 | </ListBox.ItemTemplate>
|
997 | 1011 | </ListBox>
|
|
0 commit comments