user1040567
user1040567

Reputation: 137

WPF Stop Scrollviewer Scroilling?

i search for a way to stop the scrolling in a scrollviewer temporary and the Content inside is available.

Different ways i have tried, the ScrollViewer Scroll also with non Visible ScrollBars the property ScrollViewer.CanContentScroll is only a difference for the kind of Scrolling.

Any other ideas to Stop the Scrolling?

Upvotes: 1

Views: 457

Answers (1)

Amit
Amit

Reputation: 939

Try setting scroll bar visibility to ScrollBarVisibility.Disabled.

<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled">

</ScrollViewer>

Upvotes: 3

Related Questions