© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4mo ago•
13 replies
Pludam

✅ [Avalonia] Problems Setting ItemSource of ListBox from Codebehind

I have networking running on an seperate Thread and i need to Display the Result of Server Discovery in a ListBox so the User can choose the server and Connect to it. for whatever reason setting the ItemSource Of the Listbox from the seperate Thread doesnt work when its implemented like its described here
Screenshot_2025-10-20_155534.png
How To Access the UI Thread | Avalonia Docs
This guide will show you how to access the UI thread in your Avalonia UI application.
How To Access the UI Thread | Avalonia Docs
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

[Avalonia] Problems setting ItemSource of ListBox from Codebehind
C#CC# / help
4mo ago
Avalonia ListBox pass selected DataTemplate
C#CC# / help
2y ago
✅ Problems with wrapping in wpf Listbox
C#CC# / help
3y ago
Having issues setting up Avalonia
C#CC# / help
16mo ago