❔ ✅ Image Disappears
I run my WPF and my image disappears, but if i dont run my project i see the image and its how i want it
21 Replies
Any possible fixes?
Show properties of the image
@F͓̽u͓̽c͓̽k͓̽i͓̽n͓̽R͓̽7͓̽a͓̽n͓̽ so you notice
<StackPanel Width="250"
Grid.Row="1"
Orientation="Vertical"
Margin="173,5,173,10">
<Image Source="/Images/logo.png"
Width="237" Height="100"/>
@Buddy
use a pack uri in the source instead
Pack URIs - WPF .NET Framework
Learn about the many ways to use uniform resource identifiers (URIs) to identify and load files in Windows Presentation Foundation (WPF).
I mean in the properties window
Not the xaml
.cs?
No, image properties
ohhhhh ok
That won't solve it.
If my guess is correct
Correct
i basically copied code from my other wpf for the image and on the other one it works just fine
Right-click the image, in solution explorer. Press properties.
pretty new to Coding
ok
Check the properties window
Screenshot that window.
i fixed it
i figured it out
i had build action as "None"
Yeah, as I expected.
I would have never look at that if you had not brought it up
thank you for helping
No problem.
Have a good night
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.