c# - How to programmatically change binding when datacontext changes -
i have custom control allows consumer send in markup parsed inlines, , try match given command name appropriate icommand. have working except in case datacontext not set yet. know storing markup , reloading upon datacontextchanged not appropriate, cannot seem find works yet. have tried bindingexpression , binding no avail not see way attach them hyperlink
i know storing markup , reloading upon datacontextchanged not appropriate
if you're going building binding icommand instances within datacontext, option make sense.
otherwise, you'd never able correct binding when data context changed.
Comments
Post a Comment