Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello , i try to make a chat application, and i have been running about 65%, and i'm stuck in add and change picture, it's possible if i create add and change picture in WPF or maybe something like image drop or change picture? what supposed to be i do? thanks CodeProject
Posted
Updated 29-Aug-12 16:57pm
v2

You have to state where the picture is coming from. If it is within the application, or on the internet, then all you have to do is bind the property to the source:

<image source="{Binding Path=Image}" /> 


Thus you have a property in your ViewModel that contains the path. For something in on of the assemblies you might want to have a path looking like:

"/Fox.UI.Shell;component/Images/WoodenBucket.png"


I believe you can also bind to a bitmap object.
 
Share this answer
 
the change picutre you can try many ways, one way seems the simplist is to add the image load it up in the image componet and then repeat for the amount of time you want. And after then to make the change you can jsut make them invisible.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900