markdig.wpf icon indicating copy to clipboard operation
markdig.wpf copied to clipboard

Adding HandleVerticalScrollEvents Dependency Property

Open shuelsmeier opened this issue 3 years ago • 5 comments

Added Dependency Property to control if vertical scroll events should be handled.

shuelsmeier avatar Mar 31 '21 05:03 shuelsmeier

Context?

Kryptos-FR avatar Apr 02 '21 15:04 Kryptos-FR

Sorry, that I haven't provided a context. The WPF application I am currently working on has a Window that uses nested DataGrids. I had the problem that using the mouse wheel to scroll up/down did not work, when the cursor was over a MarkdownViewer element. I tried multiple different approaches to solve the problem. The only one that worked was adding a new dependency property to MarkdownViewer to be able to set the handling of the vertical scroll events to false.

shuelsmeier avatar Apr 02 '21 19:04 shuelsmeier

Ok. I see what you mean. But there should be ways to disable scrolling without having to modify the viewer itself.

Can you provide a minimum reproducible scenario, so I can try to figure out what is required?

PS: sorry for late reply I have been busy the last few weeks.

Kryptos-FR avatar Apr 20 '21 01:04 Kryptos-FR

Give me a week or so and I will provide you a minimum reproducible scenario.

shuelsmeier avatar Apr 21 '21 06:04 shuelsmeier

I just added a WPF sample application to my keepachangelogparser repository. The sample application has the described problem of vertical scrolling.

shuelsmeier avatar May 03 '21 19:05 shuelsmeier