69 lines
3.3 KiB
Plaintext
69 lines
3.3 KiB
Plaintext
|
|
<!--
|
||
|
|
This Source Code Form is subject to the terms of the MIT License.
|
||
|
|
If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||
|
|
Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||
|
|
All Rights Reserved.
|
||
|
|
-->
|
||
|
|
|
||
|
|
<ResourceDictionary
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
xmlns:controls="clr-namespace:WPFluent.Controls">
|
||
|
|
|
||
|
|
<Style TargetType="{x:Type controls:VirtualizingGridView}">
|
||
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
||
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
|
||
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="true" />
|
||
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
|
|
<Setter Property="VirtualizingPanel.IsVirtualizing" Value="True" />
|
||
|
|
<Setter Property="VirtualizingPanel.VirtualizationMode" Value="Standard" />
|
||
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||
|
|
<Setter Property="OverridesDefaultStyle" Value="True" />
|
||
|
|
<Setter Property="ItemsPanel">
|
||
|
|
<Setter.Value>
|
||
|
|
<ItemsPanelTemplate>
|
||
|
|
<controls:VirtualizingWrapPanel
|
||
|
|
IsVirtualizing="{TemplateBinding VirtualizingPanel.IsVirtualizing}"
|
||
|
|
Orientation="Vertical"
|
||
|
|
SpacingMode="StartAndEndOnly"
|
||
|
|
StretchItems="False"
|
||
|
|
VirtualizationMode="{TemplateBinding VirtualizingPanel.VirtualizationMode}" />
|
||
|
|
</ItemsPanelTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="{x:Type controls:VirtualizingGridView}">
|
||
|
|
<Grid>
|
||
|
|
<controls:PassiveScrollViewer x:Name="PART_ContentHost">
|
||
|
|
<ItemsPresenter />
|
||
|
|
</controls:PassiveScrollViewer>
|
||
|
|
<Rectangle
|
||
|
|
x:Name="PART_DisabledVisual"
|
||
|
|
Opacity="0"
|
||
|
|
RadiusX="2"
|
||
|
|
RadiusY="2"
|
||
|
|
Stretch="Fill"
|
||
|
|
Stroke="Transparent"
|
||
|
|
StrokeThickness="0"
|
||
|
|
Visibility="Collapsed">
|
||
|
|
<Rectangle.Fill>
|
||
|
|
<SolidColorBrush Color="{DynamicResource ControlFillColorDefault}" />
|
||
|
|
</Rectangle.Fill>
|
||
|
|
</Rectangle>
|
||
|
|
</Grid>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<Trigger Property="IsGrouping" Value="True">
|
||
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="False" />
|
||
|
|
</Trigger>
|
||
|
|
<Trigger Property="IsEnabled" Value="False">
|
||
|
|
<Setter TargetName="PART_DisabledVisual" Property="Visibility" Value="Visible" />
|
||
|
|
</Trigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
</ResourceDictionary>
|