Kryptos-FR / markdig.wpf

A WPF library for xoofx/markdig https://github.com/xoofx/markdig
MIT License
159 stars 50 forks source link

Adding HandleVerticalScrollEvents Dependency Property #44

Open shuelsmeier opened 3 years ago

shuelsmeier commented 3 years ago

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

Kryptos-FR commented 3 years ago

Context?

shuelsmeier commented 3 years ago

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.

Kryptos-FR commented 3 years ago

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.

shuelsmeier commented 3 years ago

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

shuelsmeier commented 3 years ago

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