-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable virtualization for SectionView and some of list blocks
- Loading branch information
Showing
8 changed files
with
149 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,36 @@ | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" /> | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" | ||
xmlns:hc="https://handyorg.github.io/handycontrol"> | ||
<Style x:Key="ItemsListViewItemStyle" TargetType="ListViewItem"> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="ListViewItem"> | ||
<ContentPresenter /> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
|
||
<ControlTemplate x:Key="ItemsListViewTemplate" TargetType="ui:ListView"> | ||
<hc:ScrollViewer | ||
Name="PART_ScrollViewer" | ||
Padding="{TemplateBinding Control.Padding}" | ||
CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}" | ||
Focusable="False" | ||
IsInertiaEnabled="True" | ||
hc:ScrollViewerAttach.AutoHide="True"> | ||
<ItemsPresenter /> | ||
</hc:ScrollViewer> | ||
</ControlTemplate> | ||
|
||
<Style x:Key="ItemsListViewStyle" TargetType="ui:ListView" BasedOn="{StaticResource ListViewStyle}"> | ||
<Setter Property="ItemContainerStyle" Value="{StaticResource ItemsListViewItemStyle}" /> | ||
<Setter Property="Template" Value="{StaticResource ItemsListViewTemplate}" /> | ||
|
||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" /> | ||
<Setter Property="VirtualizingPanel.ScrollUnit" Value="Pixel" /> | ||
<Setter Property="VirtualizingPanel.CacheLengthUnit" Value="Item" /> | ||
<Setter Property="VirtualizingPanel.CacheLength" Value="2" /> | ||
</Style> | ||
</ResourceDictionary> |
Oops, something went wrong.