|
320 | 320 | <Style x:Key="StoreList" TargetType="ListViewItem">
|
321 | 321 | <Setter Property="Padding" Value="0,0,0,0" />
|
322 | 322 | <Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
323 |
| - |
| 323 | + <Setter Property="HorizontalAlignment" Value="Stretch" /> |
324 | 324 | <Setter Property="Margin" Value="0,0,8,8" />
|
325 | 325 | <Setter Property="VerticalContentAlignment" Value="Stretch" />
|
326 | 326 | <!--#region Template for blue highlight win10-->
|
|
1468 | 1468 | ItemContainerStyle="{StaticResource StoreList}"
|
1469 | 1469 | ItemsSource="{Binding ExternalPlugins}"
|
1470 | 1470 | ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
1471 |
| - ScrollViewer.VerticalScrollBarVisibility="Auto" |
1472 | 1471 | SelectionMode="Single"
|
1473 | 1472 | VirtualizingPanel.CacheLength="1,1"
|
1474 | 1473 | VirtualizingPanel.CacheLengthUnit="Page"
|
|
1480 | 1479 | <wpftk:VirtualizingWrapPanel
|
1481 | 1480 | x:Name="ItemWrapPanel"
|
1482 | 1481 | Margin="0,0,0,10"
|
1483 |
| - ItemSize="216,194" |
| 1482 | + ItemSize="216,184" |
1484 | 1483 | MouseWheelDelta="48"
|
1485 | 1484 | Orientation="Vertical"
|
1486 | 1485 | ScrollLineDelta="16"
|
|
1522 | 1521 | </GroupStyle>
|
1523 | 1522 | </ListView.GroupStyle>
|
1524 | 1523 |
|
1525 |
| - <ListBox.ItemTemplate> |
| 1524 | + <ListView.ItemTemplate> |
1526 | 1525 | <DataTemplate>
|
1527 | 1526 | <!-- Hover Layout Style -->
|
1528 | 1527 |
|
1529 | 1528 | <ToggleButton
|
1530 | 1529 | x:Name="StoreListItem"
|
1531 |
| - Width="200" |
1532 |
| - HorizontalAlignment="Left" |
1533 |
| - HorizontalContentAlignment="left" |
1534 |
| - IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}, Path=IsSelected}" |
1535 |
| - Style="{StaticResource StoreItem}"> |
| 1530 | + Margin="0" |
| 1531 | + Padding="0" |
| 1532 | + HorizontalAlignment="Stretch" |
| 1533 | + VerticalAlignment="Stretch" |
| 1534 | + HorizontalContentAlignment="Stretch" |
| 1535 | + VerticalContentAlignment="Stretch" |
| 1536 | + IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}, Path=IsSelected}"> |
1536 | 1537 | <ToggleButton.Template>
|
1537 |
| - <ControlTemplate TargetType="{x:Type ButtonBase}"> |
| 1538 | + <ControlTemplate x:Name="StoreListItemTemplate" TargetType="{x:Type ButtonBase}"> |
1538 | 1539 | <ContentPresenter
|
1539 | 1540 | x:Name="contentPresenter"
|
1540 | 1541 | Margin="{TemplateBinding Padding}"
|
|
1550 | 1551 | </ControlTemplate>
|
1551 | 1552 | </ToggleButton.Template>
|
1552 | 1553 |
|
1553 |
| - <Grid HorizontalAlignment="Left" VerticalAlignment="Top"> |
1554 |
| - <Grid.RowDefinitions> |
1555 |
| - <RowDefinition Height="56" /> |
1556 |
| - <RowDefinition Height="*" /> |
1557 |
| - </Grid.RowDefinitions> |
1558 |
| - <StackPanel |
1559 |
| - Grid.Row="0" |
1560 |
| - Grid.RowSpan="2" |
1561 |
| - Grid.Column="0" |
1562 |
| - Grid.ColumnSpan="2" |
1563 |
| - Margin="0,0,2,0" |
| 1554 | + <Grid x:Name="StoreListItemGrid" Width="204"> |
| 1555 | + <Border |
| 1556 | + x:Name="LabelUpdate" |
| 1557 | + Height="12" |
| 1558 | + Margin="0,10,8,0" |
| 1559 | + Padding="6,2,6,2" |
1564 | 1560 | HorizontalAlignment="Right"
|
1565 |
| - Orientation="Horizontal"> |
1566 |
| - <Border |
1567 |
| - x:Name="LabelUpdate" |
1568 |
| - Height="12" |
1569 |
| - Margin="0,10,8,0" |
1570 |
| - Padding="6,2,6,2" |
1571 |
| - HorizontalAlignment="Right" |
1572 |
| - VerticalAlignment="Top" |
1573 |
| - Background="#45BD59" |
1574 |
| - CornerRadius="36" |
1575 |
| - ToolTip="{DynamicResource LabelUpdateToolTip}" |
1576 |
| - Visibility="{Binding LabelUpdate, Converter={StaticResource BoolToVisibilityConverter}}" /> |
1577 |
| - </StackPanel> |
1578 |
| - |
1579 |
| - <StackPanel |
1580 |
| - Grid.Row="0" |
1581 |
| - Margin="0,0,0,0" |
1582 |
| - VerticalAlignment="Top"> |
1583 |
| - <StackPanel.Style> |
1584 |
| - <Style> |
1585 |
| - <Setter Property="StackPanel.Visibility" Value="Visible" /> |
1586 |
| - <Style.Triggers> |
1587 |
| - <DataTrigger Binding="{Binding Mode=TwoWay, Path=IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem, Mode=FindAncestor}}" Value="true"> |
1588 |
| - <Setter Property="StackPanel.Opacity" Value="1" /> |
1589 |
| - </DataTrigger> |
1590 |
| - </Style.Triggers> |
1591 |
| - </Style> |
1592 |
| - </StackPanel.Style> |
| 1561 | + VerticalAlignment="Top" |
| 1562 | + Background="#45BD59" |
| 1563 | + CornerRadius="36" |
| 1564 | + ToolTip="{DynamicResource LabelUpdateToolTip}" |
| 1565 | + Visibility="{Binding LabelUpdate, Converter={StaticResource BoolToVisibilityConverter}}" /> |
| 1566 | + <StackPanel> |
1593 | 1567 | <Image
|
| 1568 | + Grid.Column="0" |
1594 | 1569 | Width="32"
|
1595 | 1570 | Height="32"
|
1596 |
| - Margin="20,20,6,0" |
| 1571 | + Margin="18,24,0,0" |
1597 | 1572 | HorizontalAlignment="Left"
|
1598 |
| - VerticalAlignment="Top" |
1599 |
| - Source="{Binding IcoPath, IsAsync=True}" |
1600 |
| - Stretch="Uniform" /> |
1601 |
| - </StackPanel> |
1602 |
| - <StackPanel |
1603 |
| - Grid.Row="1" |
1604 |
| - Margin="0,6,0,0" |
1605 |
| - VerticalAlignment="Top" |
1606 |
| - Panel.ZIndex="0"> |
1607 |
| - <StackPanel.Style> |
1608 |
| - <Style> |
1609 |
| - <Setter Property="StackPanel.Visibility" Value="Visible" /> |
1610 |
| - <Style.Triggers> |
1611 |
| - <DataTrigger Binding="{Binding Mode=TwoWay, Path=IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem, Mode=FindAncestor}}" Value="true"> |
1612 |
| - <Setter Property="StackPanel.Opacity" Value="1" /> |
1613 |
| - </DataTrigger> |
1614 |
| - </Style.Triggers> |
1615 |
| - </Style> |
1616 |
| - </StackPanel.Style> |
| 1573 | + Source="{Binding IcoPath, IsAsync=True}" /> |
1617 | 1574 | <TextBlock
|
1618 |
| - Padding="20,0,20,0" |
1619 |
| - VerticalAlignment="Top" |
| 1575 | + Grid.Column="0" |
| 1576 | + Margin="18,10,18,0" |
1620 | 1577 | FontWeight="SemiBold"
|
1621 | 1578 | Foreground="{DynamicResource Color05B}"
|
1622 | 1579 | Text="{Binding Name}"
|
1623 |
| - TextWrapping="WrapWithOverflow" |
| 1580 | + TextWrapping="Wrap" |
1624 | 1581 | ToolTip="{Binding Version}" />
|
1625 | 1582 | <TextBlock
|
1626 |
| - Margin="0,6,0,0" |
1627 |
| - Padding="20,0,22,20" |
| 1583 | + Grid.Column="0" |
| 1584 | + Margin="18,10,18,10" |
| 1585 | + FontSize="12" |
1628 | 1586 | Foreground="{DynamicResource Color04B}"
|
1629 |
| - TextWrapping="WrapWithOverflow"> |
1630 |
| - <Run |
1631 |
| - FontSize="12" |
1632 |
| - Foreground="{DynamicResource Color04B}" |
1633 |
| - Text="{Binding Description, Mode=OneWay}" /> |
1634 |
| - </TextBlock> |
1635 |
| - |
| 1587 | + Text="{Binding Description, Mode=OneWay}" |
| 1588 | + TextWrapping="Wrap" /> |
1636 | 1589 | </StackPanel>
|
| 1590 | + |
1637 | 1591 | <StackPanel
|
1638 |
| - Grid.RowSpan="2" |
1639 | 1592 | Grid.Column="0"
|
1640 |
| - Grid.ColumnSpan="2" |
1641 | 1593 | HorizontalAlignment="Stretch"
|
1642 | 1594 | VerticalAlignment="Stretch">
|
1643 | 1595 | <StackPanel.Style>
|
|
1653 | 1605 |
|
1654 | 1606 |
|
1655 | 1607 | <Grid
|
1656 |
| - Height="180" |
| 1608 | + Height="{Binding ElementName=StoreListItem, Path=ActualHeight}" |
1657 | 1609 | HorizontalAlignment="Stretch"
|
1658 | 1610 | VerticalAlignment="Stretch"
|
1659 | 1611 | Panel.ZIndex="1">
|
1660 | 1612 | <Grid.Background>
|
1661 | 1613 | <SolidColorBrush Opacity="1" Color="{DynamicResource HoverStoreGrid}" />
|
1662 | 1614 | </Grid.Background>
|
1663 | 1615 | <Grid.ColumnDefinitions>
|
1664 |
| - <ColumnDefinition Width="{Binding Path=ActualWidth, ElementName=StoreListItem}" /> |
| 1616 | + <ColumnDefinition /> |
1665 | 1617 | </Grid.ColumnDefinitions>
|
1666 | 1618 |
|
1667 | 1619 | <StackPanel
|
|
1699 | 1651 | </StackPanel>
|
1700 | 1652 | <Grid Grid.Row="0" Grid.Column="1">
|
1701 | 1653 | <StackPanel
|
1702 |
| - Margin="0,70,20,0" |
| 1654 | + Margin="0,105,5,0" |
1703 | 1655 | HorizontalAlignment="Right"
|
1704 | 1656 | Orientation="Horizontal">
|
1705 | 1657 | <Button
|
1706 | 1658 | MinHeight="40"
|
| 1659 | + Margin="5,0,5,0" |
1707 | 1660 | Padding="15,5,15,5"
|
1708 |
| - HorizontalAlignment="Right" |
| 1661 | + HorizontalAlignment="Stretch" |
1709 | 1662 | VerticalAlignment="Center"
|
1710 | 1663 | Click="OnExternalPluginInstallClick"
|
1711 | 1664 | Content="{DynamicResource installbtn}"
|
1712 | 1665 | Visibility="{Binding LabelInstalled, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter='!'}" />
|
1713 | 1666 | <Button
|
1714 | 1667 | MinHeight="40"
|
1715 |
| - Margin="5,0,0,0" |
| 1668 | + Margin="5,0,5,0" |
1716 | 1669 | Padding="15,5,15,5"
|
1717 | 1670 | HorizontalAlignment="Right"
|
1718 | 1671 | VerticalAlignment="Center"
|
|
1721 | 1674 | Visibility="{Binding LabelInstalled, Converter={StaticResource BoolToVisibilityConverter}}" />
|
1722 | 1675 | <Button
|
1723 | 1676 | MinHeight="40"
|
1724 |
| - Margin="5,0,0,0" |
| 1677 | + Margin="5,0,5,0" |
1725 | 1678 | Padding="15,5,15,5"
|
1726 | 1679 | HorizontalAlignment="Right"
|
1727 | 1680 | VerticalAlignment="Center"
|
|
1734 | 1687 | </Grid>
|
1735 | 1688 | </StackPanel>
|
1736 | 1689 | </Grid>
|
1737 |
| - |
1738 | 1690 | </ToggleButton>
|
1739 | 1691 | </DataTemplate>
|
1740 |
| - </ListBox.ItemTemplate> |
| 1692 | + </ListView.ItemTemplate> |
1741 | 1693 | </ListView>
|
1742 | 1694 | </Grid>
|
1743 | 1695 |
|
|
0 commit comments