|
130 | 130 | <Setter Property="Margin" Value="0,0,-18,0" />
|
131 | 131 | </Style>
|
132 | 132 |
|
| 133 | + |
133 | 134 | <Style x:Key="logo" TargetType="{x:Type TabItem}">
|
134 | 135 | <!--#region Logo Style-->
|
135 | 136 | <Setter Property="Margin" Value="0" />
|
|
243 | 244 | </Style>
|
244 | 245 |
|
245 | 246 | <!-- Plugin Store Item when Selected layout for nothing -->
|
246 |
| - <Style x:Key="StoreItem" TargetType="{x:Type ToggleButton}"> |
247 |
| - <Style.Triggers> |
248 |
| - <Trigger Property="IsChecked" Value="True" /> |
249 |
| - </Style.Triggers> |
250 |
| - </Style> |
| 247 | + <Style x:Key="StoreItem" TargetType="{x:Type ToggleButton}" /> |
251 | 248 |
|
252 | 249 | <Style x:Key="PluginList" TargetType="ListBoxItem">
|
253 | 250 | <Setter Property="Background" Value="{DynamicResource Color00B}" />
|
|
320 | 317 | </Style>
|
321 | 318 |
|
322 | 319 | <!--#region PluginStore Style-->
|
323 |
| - <Style x:Key="StoreList" TargetType="ListBoxItem"> |
324 |
| - <Setter Property="Background" Value="{DynamicResource Color02B}" /> |
| 320 | + <Style x:Key="StoreList" TargetType="ListViewItem"> |
325 | 321 | <Setter Property="Padding" Value="0,0,0,0" />
|
326 |
| - <Setter Property="Margin" Value="0,0,8,5" /> |
327 |
| - <Setter Property="BorderBrush" Value="{DynamicResource Color03B}" /> |
| 322 | + <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
| 323 | + |
| 324 | + <Setter Property="Margin" Value="0,0,8,8" /> |
| 325 | + <Setter Property="VerticalContentAlignment" Value="Stretch" /> |
328 | 326 | <!--#region Template for blue highlight win10-->
|
329 | 327 | <Setter Property="Template">
|
330 | 328 | <Setter.Value>
|
|
336 | 334 | BorderBrush="{TemplateBinding BorderBrush}"
|
337 | 335 | BorderThickness="{TemplateBinding BorderThickness}"
|
338 | 336 | CornerRadius="5"
|
339 |
| - SnapsToDevicePixels="True"> |
| 337 | + SnapsToDevicePixels="True" |
| 338 | + UseLayoutRounding="True"> |
340 | 339 | <ContentPresenter
|
341 | 340 | HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
342 | 341 | VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
346 | 345 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
347 | 346 | </Border>
|
348 | 347 | <ControlTemplate.Triggers>
|
| 348 | + |
349 | 349 | <MultiTrigger>
|
350 | 350 | <MultiTrigger.Conditions>
|
351 |
| - <Condition Property="IsMouseOver" Value="True" /> |
| 351 | + <Condition Property="IsSelected" Value="False" /> |
352 | 352 | </MultiTrigger.Conditions>
|
353 |
| - <Setter TargetName="Bd" Property="Background" Value="{DynamicResource Color07B}" /> |
| 353 | + <Setter TargetName="Bd" Property="Margin" Value="0,0,0,0" /> |
| 354 | + <Setter TargetName="Bd" Property="Background" Value="{DynamicResource Color00B}" /> |
354 | 355 | <Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource Color03B}" />
|
355 |
| - <Setter TargetName="Bd" Property="CornerRadius" Value="5" /> |
356 |
| - |
357 | 356 | </MultiTrigger>
|
358 | 357 | <MultiTrigger>
|
359 | 358 | <MultiTrigger.Conditions>
|
360 |
| - <Condition Property="Selector.IsSelectionActive" Value="False" /> |
361 | 359 | <Condition Property="IsSelected" Value="True" />
|
362 | 360 | </MultiTrigger.Conditions>
|
363 |
| - <Setter TargetName="Bd" Property="Background" Value="{DynamicResource Color02B}" /> |
| 361 | + <Setter TargetName="Bd" Property="Background" Value="{DynamicResource Color07B}" /> |
364 | 362 | <Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource Color03B}" />
|
| 363 | + <Setter TargetName="Bd" Property="CornerRadius" Value="5" /> |
365 | 364 | <Setter TargetName="Bd" Property="Margin" Value="0,0,0,0" />
|
366 |
| - |
367 |
| - |
368 | 365 | </MultiTrigger>
|
369 | 366 | <MultiTrigger>
|
370 | 367 | <MultiTrigger.Conditions>
|
371 |
| - <Condition Property="Selector.IsSelectionActive" Value="True" /> |
372 |
| - <Condition Property="IsSelected" Value="True" /> |
| 368 | + <Condition Property="IsMouseOver" Value="True" /> |
373 | 369 | </MultiTrigger.Conditions>
|
374 |
| - <Setter TargetName="Bd" Property="Background" Value="{DynamicResource Color02B}" /> |
| 370 | + <Setter TargetName="Bd" Property="Background" Value="{DynamicResource Color07B}" /> |
375 | 371 | <Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource Color03B}" />
|
376 | 372 | <Setter TargetName="Bd" Property="CornerRadius" Value="5" />
|
377 |
| - <Setter TargetName="Bd" Property="Margin" Value="0,0,0,0" /> |
378 |
| - |
379 | 373 |
|
380 | 374 | </MultiTrigger>
|
381 | 375 | <Trigger Property="IsEnabled" Value="False">
|
|
1407 | 1401 | Grid.Row="0"
|
1408 | 1402 | Grid.Column="1"
|
1409 | 1403 | Margin="5,24,0,0">
|
| 1404 | + |
1410 | 1405 | <TextBox
|
1411 | 1406 | Name="pluginStoreFilterTxb"
|
1412 | 1407 | Width="150"
|
|
1483 | 1478 | <ListView.ItemsPanel>
|
1484 | 1479 | <ItemsPanelTemplate>
|
1485 | 1480 | <wpftk:VirtualizingWrapPanel
|
| 1481 | + x:Name="ItemWrapPanel" |
1486 | 1482 | Margin="0,0,0,10"
|
| 1483 | + ItemSize="216,194" |
1487 | 1484 | MouseWheelDelta="48"
|
1488 | 1485 | Orientation="Vertical"
|
1489 | 1486 | ScrollLineDelta="16"
|
|
1493 | 1490 | </ListView.ItemsPanel>
|
1494 | 1491 | <ListView.GroupStyle>
|
1495 | 1492 | <GroupStyle HidesIfEmpty="True">
|
1496 |
| - <GroupStyle.HeaderTemplate> |
1497 |
| - <DataTemplate> |
1498 |
| - <TextBlock |
1499 |
| - HorizontalAlignment="Left" |
1500 |
| - FontSize="14" |
1501 |
| - FontWeight="Bold" |
1502 |
| - Text="{Binding Name, Converter={StaticResource TextConverter}}" /> |
1503 |
| - </DataTemplate> |
1504 |
| - </GroupStyle.HeaderTemplate> |
| 1493 | + <GroupStyle.ContainerStyle> |
| 1494 | + <Style TargetType="{x:Type GroupItem}"> |
| 1495 | + <Setter Property="Template"> |
| 1496 | + <Setter.Value> |
| 1497 | + <ControlTemplate> |
| 1498 | + <Grid> |
| 1499 | + <StackPanel Orientation="Vertical"> |
| 1500 | + <TextBlock |
| 1501 | + Margin="0,0,0,10" |
| 1502 | + VerticalAlignment="Top" |
| 1503 | + FontSize="16" |
| 1504 | + FontWeight="Bold" |
| 1505 | + Text="{Binding Name, Converter={StaticResource TextConverter}}" /> |
| 1506 | + |
| 1507 | + <ItemsPresenter /> |
| 1508 | + |
| 1509 | + </StackPanel> |
| 1510 | + |
| 1511 | + </Grid> |
| 1512 | + </ControlTemplate> |
| 1513 | + </Setter.Value> |
| 1514 | + </Setter> |
| 1515 | + </Style> |
| 1516 | + </GroupStyle.ContainerStyle> |
1505 | 1517 | <GroupStyle.Panel>
|
1506 | 1518 | <ItemsPanelTemplate>
|
1507 | 1519 | <VirtualizingStackPanel Orientation="{Binding Orientation, Mode=OneWay}" />
|
|
1510 | 1522 | </GroupStyle>
|
1511 | 1523 | </ListView.GroupStyle>
|
1512 | 1524 |
|
1513 |
| - <ListView.ItemTemplate> |
| 1525 | + <ListBox.ItemTemplate> |
1514 | 1526 | <DataTemplate>
|
1515 | 1527 | <!-- Hover Layout Style -->
|
1516 | 1528 |
|
1517 | 1529 | <ToggleButton
|
1518 | 1530 | x:Name="StoreListItem"
|
1519 |
| - Width="216" |
1520 |
| - Height="164" |
| 1531 | + Width="200" |
1521 | 1532 | HorizontalAlignment="Left"
|
1522 | 1533 | HorizontalContentAlignment="left"
|
1523 |
| - Background="Transparent" |
1524 | 1534 | IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}, Path=IsSelected}"
|
1525 | 1535 | Style="{StaticResource StoreItem}">
|
1526 | 1536 | <ToggleButton.Template>
|
|
1727 | 1737 |
|
1728 | 1738 | </ToggleButton>
|
1729 | 1739 | </DataTemplate>
|
1730 |
| - </ListView.ItemTemplate> |
| 1740 | + </ListBox.ItemTemplate> |
1731 | 1741 | </ListView>
|
1732 | 1742 | </Grid>
|
| 1743 | + |
1733 | 1744 | </TabItem>
|
1734 | 1745 | <!--#endregion-->
|
1735 | 1746 |
|
|
0 commit comments