|
362 | 362 |
|
363 | 363 | <Style |
364 | 364 | x:Key="PluginListStyle" |
365 | | - BasedOn="{StaticResource {x:Type ListBox}}" |
366 | | - TargetType="ListBox"> |
| 365 | + BasedOn="{StaticResource DefaultListBoxStyle}" |
| 366 | + TargetType="{x:Type ListBox}"> |
| 367 | + <Setter Property="BorderBrush" Value="Transparent" /> |
| 368 | + <Setter Property="Background" Value="{DynamicResource Color01B}" /> |
| 369 | + <Setter Property="Padding" Value="0 0 0 0" /> |
| 370 | + <Setter Property="Template"> |
| 371 | + <Setter.Value> |
| 372 | + <ControlTemplate TargetType="ListBox"> |
| 373 | + <ui:ScrollViewerEx |
| 374 | + x:Name="ScrollViewer" |
| 375 | + AutoHideScrollBars="{TemplateBinding ui:ScrollViewerHelper.AutoHideScrollBars}" |
| 376 | + Focusable="false" |
| 377 | + HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" |
| 378 | + IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" |
| 379 | + KeyboardNavigation.TabNavigation="{TemplateBinding KeyboardNavigation.TabNavigation}" |
| 380 | + VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"> |
| 381 | + <ItemsPresenter Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
| 382 | + </ui:ScrollViewerEx> |
| 383 | + </ControlTemplate> |
| 384 | + </Setter.Value> |
| 385 | + </Setter> |
367 | 386 | <Style.Triggers> |
368 | 387 | <DataTrigger Binding="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Items.Count}" Value="0"> |
369 | 388 | <Setter Property="Template"> |
|
385 | 404 | </Style.Triggers> |
386 | 405 | </Style> |
387 | 406 |
|
388 | | - <Style x:Key="StoreListStyle" TargetType="{x:Type ListBox}"> |
| 407 | + <Style |
| 408 | + x:Key="StoreListStyle" |
| 409 | + BasedOn="{StaticResource DefaultListBoxStyle}" |
| 410 | + TargetType="{x:Type ListBox}"> |
389 | 411 | <Setter Property="BorderBrush" Value="Transparent" /> |
390 | 412 | <Setter Property="Background" Value="{DynamicResource Color01B}" /> |
391 | | - <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" /> |
392 | | - <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" /> |
393 | 413 | <Setter Property="Padding" Value="0 0 0 0" /> |
394 | | - <Setter Property="IsTabStop" Value="False" /> |
395 | | - <Setter Property="KeyboardNavigation.TabNavigation" Value="Once" /> |
396 | | - <Setter Property="FocusVisualStyle" Value="{DynamicResource {x:Static SystemParameters.FocusVisualStyleKey}}" /> |
397 | | - <Setter Property="ui:FocusVisualHelper.UseSystemFocusVisuals" Value="{DynamicResource UseSystemFocusVisuals}" /> |
398 | | - <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" /> |
399 | | - <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" /> |
400 | | - <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" /> |
401 | | - <Setter Property="ScrollViewer.PanningMode" Value="Both" /> |
402 | 414 | <Setter Property="Template"> |
403 | 415 | <Setter.Value> |
404 | 416 | <ControlTemplate TargetType="ListBox"> |
|
0 commit comments