Skip to content

Commit ec587c0

Browse files
authored
Merge pull request #3564 from SamBent/VSPFreeze
Vsp freeze
2 parents c01a204 + c042ba0 commit ec587c0

File tree

2 files changed

+180
-48
lines changed

2 files changed

+180
-48
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/HierarchicalVirtualizationConstraints.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public HierarchicalVirtualizationConstraints(VirtualizationCacheLength cacheLeng
2121
_cacheLength = cacheLength;
2222
_cacheLengthUnit = cacheLengthUnit;
2323
_viewport = viewport;
24+
_scrollGeneration = 0; // internal field set separately by caller
2425
}
2526

2627
#endregion
@@ -131,11 +132,22 @@ public override int GetHashCode()
131132

132133
#endregion
133134

135+
#region Internal properties
136+
137+
internal long ScrollGeneration
138+
{
139+
get { return _scrollGeneration; }
140+
set { _scrollGeneration = value; }
141+
}
142+
143+
#endregion
144+
134145
#region Data
135146

136147
VirtualizationCacheLength _cacheLength;
137148
VirtualizationCacheLengthUnit _cacheLengthUnit;
138149
Rect _viewport;
150+
long _scrollGeneration;
139151

140152
#endregion
141153
}

0 commit comments

Comments
 (0)