I have an image app in wp7.
class Images
{
public string Title {get;set;}
public string Path {get;set;}
}
on page level, i bind title and path(relative to my app) it to a list.
What i need is, when user click on list item the respective image open in picture gallery of windows phone 7.
You should clarify your question, but I suppose
Path
is the location of your image in isolated storage. Providing thatImage
is the name of your Image in xamlLoadIfExists
returns the binary data for a file in Isolated Storage, and GetImage returns it as aWriteableBitmap
:If you want to write the image into the Picture Library, it's basically the same process, ending by calling
SavePictureToCameraRoll()
ofMediaLibrary
as explained on this MSDN Article