You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I use d:DataContext or Design.DataContext, the Rider previewer stops updating. If I have the design datacontext set and then changing a margin, for example, the preview will not update. As soon as I remove the design datacontext line, the preview updates.
To Reproduce:
Create a new user control and add a child textblock.
Add text to the textblock - the text will update.
Add a design time datacontext to the control by using d:DataContext="{d:DesignInstance ...}" or Design.DataContext="{x:Static ...}"
Change the text in the textblock - the preview will not update.
Remove the d:DataContext definition
Preview updates immediately.
The text was updated successfully, but these errors were encountered:
Seems like this happens when ViewModel has parameters in constructor. And for me Interaction.Behaviors on my controls also stop previewer from updating.
Whenever I use
d:DataContext
orDesign.DataContext
, the Rider previewer stops updating. If I have the design datacontext set and then changing a margin, for example, the preview will not update. As soon as I remove the design datacontext line, the preview updates.To Reproduce:
d:DataContext="{d:DesignInstance ...}"
orDesign.DataContext="{x:Static ...}"
The text was updated successfully, but these errors were encountered: