© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
21 replies
Erich21

Image sources.

Hello, I'm currently developing a game in c# and i have several questions regarding images in WPF.
First, I'd like to know some help regarding this exception.
Secondly, is it possible to define multiple images in the XAML, but display them only when needed?
this is how my current image looks, it is inside a grid
<Image Name="testImage" Canvas.Top="46" Canvas.Left="214" HorizontalAlignment="Left" VerticalAlignment="Center"></Image>
<Image Name="testImage" Canvas.Top="46" Canvas.Left="214" HorizontalAlignment="Left" VerticalAlignment="Center"></Image>
image.png
image.png
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

Object Data Sources
C#CC# / help
3y ago
Windows Forms Data Sources
C#CC# / help
2y ago
❔ problem trying to embed image sources with itextsharp converting html element to pdf
C#CC# / help
3y ago
Image
C#CC# / help
3y ago