|
41 | 41 | <Window.Resources>
|
42 | 42 | <converters:BorderClipConverter x:Key="BorderClipConverter" />
|
43 | 43 | <converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
|
| 44 | + <converters:TextConverter x:Key="TextConverter" /> |
44 | 45 | <CollectionViewSource x:Key="SortedFonts" Source="{Binding Source={x:Static Fonts.SystemFontFamilies}}">
|
45 | 46 | <CollectionViewSource.SortDescriptions>
|
46 | 47 | <scm:SortDescription PropertyName="Source" />
|
|
1463 | 1464 | ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
1464 | 1465 | SelectionMode="Single"
|
1465 | 1466 | Style="{DynamicResource StoreListStyle}">
|
| 1467 | + <ListBox.GroupStyle> |
| 1468 | + <GroupStyle> |
| 1469 | + <GroupStyle.ContainerStyle> |
| 1470 | + <Style TargetType="{x:Type GroupItem}"> |
| 1471 | + <Setter Property="Template"> |
| 1472 | + <Setter.Value> |
| 1473 | + <ControlTemplate> |
| 1474 | + <Grid> |
| 1475 | + <StackPanel Orientation="Vertical"> |
| 1476 | + <TextBlock |
| 1477 | + Margin="0,0,0,10" |
| 1478 | + VerticalAlignment="Top" |
| 1479 | + FontSize="16" |
| 1480 | + FontWeight="Bold" |
| 1481 | + Text="{Binding Name, Converter={StaticResource TextConverter}}" /> |
| 1482 | + <ItemsPresenter /> |
| 1483 | + </StackPanel> |
| 1484 | + |
| 1485 | + </Grid> |
| 1486 | + </ControlTemplate> |
| 1487 | + </Setter.Value> |
| 1488 | + </Setter> |
| 1489 | + </Style> |
| 1490 | + </GroupStyle.ContainerStyle> |
| 1491 | + </GroupStyle> |
| 1492 | + </ListBox.GroupStyle> |
1466 | 1493 | <ListBox.ItemsPanel>
|
1467 | 1494 | <ItemsPanelTemplate>
|
1468 | 1495 | <UniformGrid
|
|
1518 | 1545 | Margin="0,0,2,0"
|
1519 | 1546 | HorizontalAlignment="Right"
|
1520 | 1547 | Orientation="Horizontal">
|
1521 |
| - <Border |
1522 |
| - x:Name="LabelNew" |
1523 |
| - Margin="0,10,8,0" |
1524 |
| - Padding="6,2,6,2" |
1525 |
| - HorizontalAlignment="Right" |
1526 |
| - VerticalAlignment="Top" |
1527 |
| - Background="#f14551" |
1528 |
| - CornerRadius="4" |
1529 |
| - ToolTip="{DynamicResource LabelNewToolTip}" |
1530 |
| - Visibility="{Binding LabelNew, Converter={StaticResource BoolToVisibilityConverter}}"> |
1531 |
| - <TextBlock |
1532 |
| - FontSize="11" |
1533 |
| - Foreground="{DynamicResource Color01B}" |
1534 |
| - Text="{DynamicResource LabelNew}" /> |
1535 |
| - </Border> |
1536 | 1548 | <Border
|
1537 | 1549 | x:Name="LabelUpdate"
|
| 1550 | + Height="12" |
1538 | 1551 | Margin="0,10,8,0"
|
1539 | 1552 | Padding="6,2,6,2"
|
1540 | 1553 | HorizontalAlignment="Right"
|
1541 | 1554 | VerticalAlignment="Top"
|
1542 | 1555 | Background="#45BD59"
|
1543 |
| - CornerRadius="4" |
| 1556 | + CornerRadius="36" |
1544 | 1557 | ToolTip="{DynamicResource LabelUpdateToolTip}"
|
1545 |
| - Visibility="{Binding LabelUpdate, Converter={StaticResource BoolToVisibilityConverter}}"> |
1546 |
| - <TextBlock |
1547 |
| - FontSize="11" |
1548 |
| - Foreground="{DynamicResource Color01B}" |
1549 |
| - Text="{DynamicResource LabelUpdate}" /> |
1550 |
| - </Border> |
| 1558 | + Visibility="{Binding LabelUpdate, Converter={StaticResource BoolToVisibilityConverter}}" /> |
1551 | 1559 | <Border
|
1552 | 1560 | x:Name="Labelinstalled"
|
1553 | 1561 | Margin="0,10,8,0"
|
|
0 commit comments