Design properties not being applied for user controls by maxkatz6 · Pull Request #20986 · AvaloniaUI/Avalonia (original) (raw)
What does the pull request do?
When user controls (or any non-window) are previewed, a window (target) is created and populated by these design properties from the controls (source).
After my previous Design related PR it was broken, and on target were applied properties from the same object, ignoring source.
Unrelated to the fix - but we should also bind to BindingBase instead of Observable. In this PR, it now binds to the indexer binding.
Checklist
- Added unit tests (if possible)?
Fixed issues
Fixes #20981