Solved

SilverLight 4: how to dynamically change the source of an Image?

Posted on 2010-08-16
2
720 Views
Last Modified: 2013-12-17
Hi Experts:

    I am making a SilverLight 4 program in which I want an image to be changed when user click a button.
    This is simple and straight forward if I am implementing desktop or ASP program: just build the bitmap with the new image URI  (hard-coded in the code) and assign the bitmap to Image.Source property.
    However, it seems non-trivial to me in SilverLight, because the application is hosted in the server but executed in the client. The client computer wouldn't have the path specified by the URI.
    Can you tell me how to make it work? If there is an example then it will be great.
    Thank you.
0
Comment
Question by:huangs3
2 Comments
 
LVL 18

Accepted Solution

by:
Anil Golamari earned 500 total points
ID: 33447306
http://www.xdevsoftware.com/blog/post/Dynamically-Loading-Images-in-SilverLight-10-using-C.aspx

http://forums.silverlight.net/forums/p/761/1511.aspx

Hope these provide you some information on dynamically loading images in silverlight.

Good Luck.
0
 

Author Comment

by:huangs3
ID: 33461158
Hi lucky85:

    Your links are relevant. Using the key "Dynamically-Loading-Image" I got an easy to follow link
http://blogs.silverlight.net/blogs/msnow/archive/2008/06/06/dynamically-loading-and-display-images-in-beta-2.aspx

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now