Kryptos-FR / markdig.wpf

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

Adding image and hyperlink commands #45

Closed shuelsmeier closed 3 years ago

shuelsmeier commented 3 years ago

Adding dependency properties for image and hyperlink.

Kryptos-FR commented 3 years ago

Context?

I expect contributions to give a nice explanation of why a code change is required. And what was attempted with the existing code and did not work. Hyperlinks and images can already have commands attached to them through a command binding.

See the SampleApp.

edit: If the purpose is to bind to a command on the view model side there are existing solutions to create such behavior. See https://stackoverflow.com/questions/36183366/how-can-i-handle-wpf-routed-commands-in-my-viewmodel-without-code-behind

shuelsmeier commented 3 years ago

Sorry, that I havent't provided a context. My purpose was to bind to a command on the view model side like you already wrote ... thanks for pointing me in the right direction.