|
1493 | 1493 | FontSize="16"
|
1494 | 1494 | FontWeight="Bold"
|
1495 | 1495 | Text="{Binding Name, Converter={StaticResource TextConverter}}" />
|
| 1496 | + |
1496 | 1497 | <ItemsPresenter />
|
| 1498 | + |
1497 | 1499 | </StackPanel>
|
1498 | 1500 |
|
1499 | 1501 | </Grid>
|
|
1506 | 1508 | </ListBox.GroupStyle>
|
1507 | 1509 | <ListBox.ItemsPanel>
|
1508 | 1510 | <ItemsPanelTemplate>
|
1509 |
| - <UniformGrid |
1510 |
| - Margin="0,0,17,18" |
1511 |
| - HorizontalAlignment="Left" |
1512 |
| - VerticalAlignment="Top" |
1513 |
| - Columns="3" |
1514 |
| - IsItemsHost="True" |
1515 |
| - SnapsToDevicePixels="True" /> |
| 1511 | + <WrapPanel Margin="0,0,0,10" /> |
1516 | 1512 | </ItemsPanelTemplate>
|
1517 | 1513 | </ListBox.ItemsPanel>
|
1518 | 1514 | <ListBox.ItemTemplate>
|
1519 | 1515 | <DataTemplate>
|
1520 | 1516 | <!-- Hover Layout Style -->
|
1521 | 1517 |
|
1522 | 1518 | <ToggleButton
|
1523 |
| - Width="{Binding ActualWidth, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}" |
| 1519 | + x:Name="StoreListItem" |
| 1520 | + Width="216" |
| 1521 | + Height="164" |
1524 | 1522 | HorizontalAlignment="Left"
|
1525 | 1523 | HorizontalContentAlignment="left"
|
1526 | 1524 | Background="Transparent"
|
|
1543 | 1541 | </ControlTemplate>
|
1544 | 1542 | </ToggleButton.Template>
|
1545 | 1543 |
|
1546 |
| - <Grid |
1547 |
| - Height="160" |
1548 |
| - HorizontalAlignment="Left" |
1549 |
| - VerticalAlignment="Top"> |
| 1544 | + <Grid HorizontalAlignment="Left" VerticalAlignment="Top"> |
1550 | 1545 | <Grid.RowDefinitions>
|
1551 | 1546 | <RowDefinition Height="56" />
|
1552 | 1547 | <RowDefinition Height="*" />
|
|
1598 | 1593 | </StackPanel>
|
1599 | 1594 | <StackPanel
|
1600 | 1595 | Grid.Row="1"
|
1601 |
| - Width="{Binding ActualWidth, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}" |
1602 | 1596 | Margin="0,6,0,0"
|
1603 | 1597 | VerticalAlignment="Top"
|
1604 | 1598 | Panel.ZIndex="0">
|
|
1656 | 1650 | VerticalAlignment="Stretch"
|
1657 | 1651 | Panel.ZIndex="1">
|
1658 | 1652 | <Grid.Background>
|
1659 |
| - <SolidColorBrush Opacity=".95" Color="{DynamicResource HoverStoreGrid}" /> |
| 1653 | + <SolidColorBrush Opacity="1" Color="{DynamicResource HoverStoreGrid}" /> |
1660 | 1654 | </Grid.Background>
|
1661 | 1655 | <Grid.ColumnDefinitions>
|
1662 |
| - <ColumnDefinition Width="{Binding ActualWidth, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}" /> |
| 1656 | + <ColumnDefinition Width="{Binding Path=ActualWidth, ElementName=StoreListItem}" /> |
1663 | 1657 | </Grid.ColumnDefinitions>
|
1664 | 1658 |
|
1665 | 1659 | <StackPanel
|
|
0 commit comments