C
C#12mo ago
MrWholesome

Major difference between the visual studio designer and the actual app output (debug or release)

Two photos attached, I can't find anything on google as to why this looks different. It was working at one point then wasn't the next. I can't remember anything being the catalyst for why it wasn't working. Any tips? Info: The images are contained in a Resources directory that works fine on the designer but not on the app, it also isn't generated when I publish the app so could it be something to do with the app not finding the resources at runtime?
No description
No description
9 Replies
nohopestage
nohopestage12mo ago
Have you set the images' build action to Resource?
MrWholesome
MrWholesomeOP12mo ago
Sorry for the late reply. I do believe so, yes. Even so, would that also affect the windows visuals and the <Boarder> elements?
nohopestage
nohopestage12mo ago
No, it doesn't affect anything else as far as I know. I didn't notice the grid lines missing at first. Not sure why that happens
MrWholesome
MrWholesomeOP12mo ago
Yeah, me too. I've even moved it to another WPF project (new) and only copied the XAML and code-behind but it's al the same.
nohopestage
nohopestage12mo ago
If you share the project I could try to fix it Or you can just share the xaml
MrWholesome
MrWholesomeOP12mo ago
I'll just share the whole code, it's a very basic app anyway lol. Can I dm it to you?
nohopestage
nohopestage12mo ago
Sure
MrWholesome
MrWholesomeOP12mo ago
I believe it was something to do with fixing the majority of my layouts. I sent an updated XAML configuration that was segmented, re-worked manually through every line and I implemented Grids (as it didn't previously have them) and applied borders. From there it seemed to work for the most part with minor tweaking. Still very strange though !solved
MODiX
MODiX12mo ago
That command had an error
UnknownCommand: Unknown command.
Remove your reaction to delete this message
Want results from more Discord servers?
Add your server