Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sandbox tuned #147

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Engine/Draw/Layout/SkiaLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,14 @@ public VirtualisationType Virtualisation
nameof(VirtualisationInflated),
typeof(double),
typeof(SkiaLayout),
350.0,
0.0,
propertyChanged: NeedInvalidateMeasure);

/// <summary>
/// How much of the hidden content out of visible bounds should be considered visible for rendering,
/// default is 350 pts.
/// default is 0 pts.
/// Basically how much should be expand in every direction of the visible area prior to checking if content falls
/// into its bounds for rendering controlled with Virtualisation.
/// The more your cells are smaller the bigger this value should be for better effect.
/// </summary>
public double VirtualisationInflated
{
Expand Down
2 changes: 1 addition & 1 deletion src/samples/Sandbox/Views/MainPageDynamicHeightCells.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
ItemsSource="{Binding Items}"
RecyclingTemplate="Enabled"
Type="Column"
VirtualisationInflated="350">
VirtualisationInflated="0">

<draw:SkiaLayout.ItemTemplate>
<DataTemplate x:DataType="demo:ChatMessage">
Expand Down
Loading