|
263 | 263 | <Setter Property="Padding" Value="0 0 0 0" />
|
264 | 264 | <Setter Property="Margin" Value="0 0 8 4" />
|
265 | 265 | <Setter Property="BorderBrush" Value="#e5e5e5" />
|
266 |
| - |
| 266 | + <Setter Property="MinWidth" Value="330"/> |
| 267 | + <Setter Property="MaxWidth" Value="400"/> |
| 268 | + <Setter Property="Height" Value="98"/> |
267 | 269 | <!--#region Template for blue highlight win10-->
|
268 | 270 | <Setter Property="Template">
|
269 | 271 | <Setter.Value>
|
|
837 | 839 | <TextBlock Text="Plugin Store" TextAlignment="left" FontSize="30" Margin="0 5 0 5"/>
|
838 | 840 | </Border>
|
839 | 841 | <Border Grid.Column="0" Grid.Row="1" Background="#f3f3f3" Padding="0 0 0 0">
|
840 |
| - <ListBox |
| 842 | + <ListBox x:Name="StoreListBox" |
841 | 843 | ItemsSource="{Binding PluginViewModels}"
|
842 | 844 | Margin="6, 0, 0, 0" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
843 | 845 | ItemContainerStyle="{StaticResource StoreList}"
|
844 | 846 | ScrollViewer.IsDeferredScrollingEnabled="True" ScrollViewer.CanContentScroll="False"
|
845 | 847 | Padding="0 0 0 0" Width="Auto" VerticalContentAlignment="Center" HorizontalAlignment="Stretch">
|
846 | 848 | <ListBox.ItemsPanel>
|
847 | 849 | <ItemsPanelTemplate>
|
848 |
| - <WrapPanel ItemHeight="100" ItemWidth="390" Margin="0"/> |
| 850 | + <UniformGrid IsItemsHost="True" HorizontalAlignment="Left" Columns="2" Margin="0 0 12 18" VerticalAlignment="Top" /> |
849 | 851 | </ItemsPanelTemplate>
|
| 852 | + |
| 853 | + |
| 854 | + |
850 | 855 | </ListBox.ItemsPanel>
|
851 | 856 | <ListBox.ItemTemplate>
|
852 | 857 | <DataTemplate>
|
853 | 858 | <!-- Hover Layout Style-->
|
854 |
| - <Border x:Name="HoverArea" Padding="0" MinWidth="390" BorderBrush="Black" BorderThickness="0" Background="Transparent" > |
| 859 | + <Border Padding="0" BorderBrush="Black" BorderThickness="0" Background="Transparent" > |
855 | 860 | <Grid HorizontalAlignment="Left" VerticalAlignment="Stretch">
|
856 | 861 | <Grid.ColumnDefinitions>
|
857 | 862 | <ColumnDefinition Width="72"/>
|
|
887 | 892 | <TextBlock Text="{Binding PluginPair.Metadata.Name}"
|
888 | 893 | TextWrapping="WrapWithOverflow" Padding="0 0 20 0"
|
889 | 894 | ToolTip="{Binding PluginPair.Metadata.Version}" />
|
890 |
| - <TextBlock Opacity="0.5" TextWrapping="Wrap" Margin="0 2 0 0" Padding="0 0 20 0"> |
| 895 | + <TextBlock Opacity="0.5" TextWrapping="WrapWithOverflow" Margin="0 2 0 0" Padding="0 0 20 0"> |
891 | 896 | <Run Text="{Binding PluginPair.Metadata.Description}" FontSize="12" />
|
892 | 897 | </TextBlock>
|
893 | 898 |
|
894 |
| - </StackPanel> |
895 |
| - <StackPanel Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Stretch"> |
| 899 | + </StackPanel > |
| 900 | + <StackPanel Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> |
896 | 901 | <StackPanel.Style>
|
897 | 902 | <Style>
|
898 | 903 | <Setter Property="StackPanel.Visibility" Value="Collapsed"></Setter>
|
|
905 | 910 | </StackPanel.Style>
|
906 | 911 |
|
907 | 912 |
|
908 |
| - <Grid Width="390" Height="94" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Panel.ZIndex="1"> |
| 913 | + <Grid Height="98" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Panel.ZIndex="1" Width="auto"> |
909 | 914 | <Grid.Background>
|
910 | 915 | <SolidColorBrush Color="#f6f6f6" Opacity=".95"/>
|
911 | 916 | </Grid.Background>
|
912 | 917 | <Grid.ColumnDefinitions>
|
913 |
| - <ColumnDefinition Width="*"/> |
914 |
| - <ColumnDefinition Width="150" /> |
| 918 | + <ColumnDefinition Width="{Binding ActualWidth,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}" /> |
915 | 919 | </Grid.ColumnDefinitions>
|
916 | 920 |
|
917 |
| - <StackPanel Grid.Column="0" VerticalAlignment="Center"> |
| 921 | + <StackPanel Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Stretch"> |
918 | 922 | <StackPanel Orientation="Horizontal">
|
919 | 923 | <TextBlock Text="{Binding PluginPair.Metadata.Name}" FontWeight="Bold"
|
920 | 924 | TextWrapping="WrapWithOverflow" Padding="0 0 0 0" Margin="20 0 0 0"
|
|
928 | 932 | </TextBlock>
|
929 | 933 | </StackPanel>
|
930 | 934 |
|
931 |
| - <Button Foreground="Black" Name="ShortCutButtonPrev" Content="Install" Width="90" MinHeight="40" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1"> |
| 935 | + <Button Foreground="Black" Name="ShortCutButtonPrev" Content="Install" Width="90" MinHeight="40" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1" Margin="0 0 20 0"> |
932 | 936 | </Button>
|
933 | 937 | </Grid>
|
934 | 938 | </StackPanel>
|
|
0 commit comments