ForNeVeR / ForNeVeR/AvaloniaRider
Using design time datacontext stops the previewer from updating
- Dominant language
- Kotlin
- Stars
- 583
- Forks
- 32
- Avg merge
- 2h 23m
- Merged PRs (30d)
- 1
Description
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:**
1. Create a new user control and add a child textblock.
2. Add text to the textblock - the text will update.
3. Add a design time datacontext to the control by using `d:DataContext="{d:DesignInstance ...}"` or `Design.DataContext="{x:Static ...}"`
4. Change the text in the textblock - the preview will not update.
5. Remove the d:DataContext definition
6. Preview updates immediately.
Contributor guide
Assessment
This issue has not been assessed yet.