❔ ✅ 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
Buddy
Buddy2y ago
Show properties of the image @F͓̽u͓̽c͓̽k͓̽i͓̽n͓̽R͓̽7͓̽a͓̽n͓̽ so you notice
F͓̽u͓̽c͓̽k͓̽i͓̽n͓̽R͓̽7͓̽a͓̽n͓̽
<StackPanel Width="250" Grid.Row="1" Orientation="Vertical" Margin="173,5,173,10"> <Image Source="/Images/logo.png" Width="237" Height="100"/> @Buddy
Anchy
Anchy2y ago
use a pack uri in the source instead
Anchy
Anchy2y ago
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).
Buddy
Buddy2y ago
I mean in the properties window Not the xaml
Anchy
Anchy2y ago
<Image Source="pack://application:,,,/Images/logo.png" Width="237" Height="100"/>
<Image Source="pack://application:,,,/Images/logo.png" Width="237" Height="100"/>
Buddy
Buddy2y ago
No, image properties
Buddy
Buddy2y ago
That won't solve it. If my guess is correct
F͓̽u͓̽c͓̽k͓̽i͓̽n͓̽R͓̽7͓̽a͓̽n͓̽
Correct i basically copied code from my other wpf for the image and on the other one it works just fine
Buddy
Buddy2y ago
Right-click the image, in solution explorer. Press properties.
F͓̽u͓̽c͓̽k͓̽i͓̽n͓̽R͓̽7͓̽a͓̽n͓̽
pretty new to Coding ok
Buddy
Buddy2y ago
Check the properties window Screenshot that window.
F͓̽u͓̽c͓̽k͓̽i͓̽n͓̽R͓̽7͓̽a͓̽n͓̽
i fixed it i figured it out i had build action as "None"
Buddy
Buddy2y ago
Yeah, as I expected.
F͓̽u͓̽c͓̽k͓̽i͓̽n͓̽R͓̽7͓̽a͓̽n͓̽
I would have never look at that if you had not brought it up thank you for helping
Buddy
Buddy2y ago
No problem.
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server