Commit ee4259f
committed
fix(combobulate): VisualCollection reorder + deferred Source resolve
VisualCollection.InsertAtTop throws E_INVALIDARG when the visual already
has a parent. The v0.5.0 sprite-pool reorder loop assumed it would
re-position existing children in place; instead the renderer must
Remove(sprite) before InsertAtTop. Without this fix Combobulate crashes
during the first painter sort that hits a non-empty visible set.
OnSourceChanged now defers resolution failures to the next OnLoaded, so
declarative XAML markup like Source="key" still works when the consumer
registers the keyed cache from code-behind right after
InitializeComponent. Same change in CombobulateSceneVisual.
Sample manifest bumped to 1.0.9.0.1 parent 205235f commit ee4259f
3 files changed
Lines changed: 45 additions & 9 deletions
File tree
- src
- Combobulate.Sample.WinUI3
- Combobulate
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
220 | 233 | | |
221 | 234 | | |
222 | 235 | | |
| |||
480 | 493 | | |
481 | 494 | | |
482 | 495 | | |
483 | | - | |
484 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
485 | 500 | | |
486 | 501 | | |
487 | 502 | | |
| 503 | + | |
488 | 504 | | |
489 | 505 | | |
490 | 506 | | |
| 507 | + | |
491 | 508 | | |
492 | 509 | | |
493 | 510 | | |
| |||
519 | 536 | | |
520 | 537 | | |
521 | 538 | | |
| 539 | + | |
522 | 540 | | |
523 | 541 | | |
524 | 542 | | |
| |||
806 | 824 | | |
807 | 825 | | |
808 | 826 | | |
809 | | - | |
810 | | - | |
811 | | - | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
812 | 831 | | |
813 | 832 | | |
814 | 833 | | |
815 | 834 | | |
816 | | - | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
817 | 838 | | |
818 | 839 | | |
819 | 840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
264 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
265 | 275 | | |
266 | 276 | | |
267 | 277 | | |
| |||
453 | 463 | | |
454 | 464 | | |
455 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
456 | 469 | | |
| 470 | + | |
457 | 471 | | |
458 | 472 | | |
459 | 473 | | |
| 474 | + | |
460 | 475 | | |
461 | 476 | | |
462 | 477 | | |
| |||
0 commit comments