I have earlier asked how to convert static values of TextBlocks
using bindings and IValueConverter
as seen here.
Now I would like to do the exact same thing, but with buttons instead. But the problem is, that buttons do not have the DataContext
property, so the IValueConverter
is not invoked.
So how do I achieve this?
Thank you!