AvaloniaList<T>
or ObservableCollection<T>
's Move
Method can not refresh ui
#19454
lishuangquan1987
started this conversation in
General
Replies: 2 comments 2 replies
-
What is the control for displaying? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Which thread are you on? Only the UI thread should ever update the collection. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
when I write the below code:
var index = this.Vo.SubConfigs.IndexOf(this.SelectedSubConfig); this.Vo.SubConfigs.Move(index, index + 1);
the ui can not change the element order,SubConfigs is
AvaloniaList<T>
,When I changeSubConfigs
toObservableCollection<T>
type , the ui can not refresh yet,stay the same.Does anyone have the same problem?
Beta Was this translation helpful? Give feedback.
All reactions