#Need a help in programming that isn’t related to GT New Horizons
1 messages · Page 1 of 1 (latest)
I don’t know where else to ask. Some of this server residents know a lot about C#, so why can’t I know in what channel to ask them?
string pathFromSettings = GetPathFromGTNHSettingsBecauseThereArePlentyCDiscordsThatYouCouldHaveAskedIn();
<ImageBrush ImageSource=$"Assets/{pathFromSettings}/Background.png"
Thanks
And somebody answered his question which isn’t that all surprising to be honest. Also next time I would ask any programming question in a discord server for for that language, which there are tons of them for each language, or at https://stackoverflow.com . Also I would recommend closing and possibly deleting this post now since you have it resolved now, and if further problems arise I would recommend a more proper place where more people will be able to help you out.
I think that wouldn't work tho. You are mixing c# codebehind code with xaml.
Im guessing he is using wpf or windows forms. In that case, look for a dynamic bindig solution and bind the imagesource to a value in the viewmodel of the datacontext. Then u can just set that value to the new image and the UI will trigger an update throughout Inotifypropertychanged interface
That's how c# works