© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•7mo ago•
13 replies
Glitchoid

Linking a WPF grid to an array in the code behind

Does anyone have any advice on how to link a wpf grid to an array? I want the user to be able to change the colour/image at a point in a grid, but to do this I need my "Map" array to say what should be displayed in this grid if that makes sense.
I am still relatively new to WPF, so while I do know about databindings and have used them, I am not experienced enough with them to attempt to use them like this. Any help would be greatly appreciated, cheers.
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

✅ WPF MVVM Add Button to StackPanel in a Big Grid
C#CC# / help
2y ago