I am working on a WPF app. Here is my interface:
<ScrollViewer x:Name="ScrollView" CanContentScroll="True">
<RichTextBox Padding="10" x:Name="TextArea" Background="Transparent" Opacity="0.95" />
A Double that represents the vertical size of the extent. The default
If CanContentScroll is true, the values of the ExtentHeight,
ScrollableHeight, ViewportHeight, and VerticalOffset properties are
number of items. If CanContentScroll is false, the values of these
properties are Device Independent Pixels.
I think the cause of my issue was that I had my RichTextBox in ScrollViewer. RichTextBox has it own scrolling capabilities, and by sticking it in ScrollViwer it got all mixed up. So I got rid of ScrollViewver and used RichTextBox only with its HeightExtent property.