File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/Uno.UI.Composition/Composition Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,13 @@ partial void InitializePartial()
3636
3737 InvalidateParentChildrenPicture ( true ) ;
3838
39+ // We need to force a redraw because at this point it's not necessarily true that
40+ // a visual in the composition tree was changed, only that it was added/removed,
41+ // so it's possible that no InvalidatePaint() calls were fired in response to this change,
42+ // so we need to force a new frame even though no paint invalidations happened just so that
43+ // already-clean added/removed visuals are reflected in the UI
44+ CompositionTarget ? . RequestNewFrame ( ) ;
45+
3946 if ( e . Action is NotifyCollectionChangedAction . Remove or NotifyCollectionChangedAction . Reset
4047 && e . OldItems is not null )
4148 {
You can’t perform that action at this time.
0 commit comments