Closed shuelsmeier closed 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
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.
Adding dependency properties for image and hyperlink.