Skip to content

Commit 59b16df

Browse files
authored
Update ScrollViewer.xml (#4613)
Refer to ScrollableHeight and ScrollableWidth properties instead of the more complicated explanation in terms of a subtraction. I checked the reference sources and these properties internally perform that same subtraction.
1 parent 08162c6 commit 59b16df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Windows.Controls/ScrollViewer.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@
865865
## Remarks
866866
A positive <xref:System.Windows.Controls.ScrollViewer.HorizontalOffset%2A> value corresponds to the content being offset to the left.
867867
868-
Valid values are between zero and the <xref:System.Windows.Controls.ScrollViewer.ExtentWidth%2A> minus the <xref:System.Windows.Controls.ScrollViewer.ViewportWidth%2A>.
868+
Valid values are between zero and <xref:System.Windows.Controls.ScrollViewer.ScrollableWidth%2A>.
869869
870870
The returned value is described in Device Independent Pixels.
871871
@@ -2626,7 +2626,7 @@
26262626
## Remarks
26272627
A positive <xref:System.Windows.Controls.ScrollViewer.VerticalOffset%2A> value corresponds to the content being offset to the top.
26282628
2629-
Valid values are between zero and the <xref:System.Windows.Controls.ScrollViewer.ExtentHeight%2A> minus the <xref:System.Windows.Controls.ScrollViewer.ViewportHeight%2A>.
2629+
Valid values are between zero and <xref:System.Windows.Controls.ScrollViewer.ScrollableHeight%2A>.
26302630
26312631
If <xref:System.Windows.Controls.ScrollViewer.CanContentScroll%2A> is `true`, the values of the <xref:System.Windows.Controls.ScrollViewer.ExtentHeight%2A>, <xref:System.Windows.Controls.ScrollViewer.ScrollableHeight%2A>, <xref:System.Windows.Controls.ScrollViewer.ViewportHeight%2A>, and <xref:System.Windows.Controls.ScrollViewer.VerticalOffset%2A> properties are number of items. If <xref:System.Windows.Controls.ScrollViewer.CanContentScroll%2A> is `false`, the values of these properties are Device Independent Pixels.
26322632

0 commit comments

Comments
 (0)