Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am developing a windows mobile app for the first time...

I am developing a Application for Windows Mobile 8 in visual studio C# that select a photo from the device albums and crop the photo..

I am getting the exact output, but I am facing a problem, albums are not loaded when open a app directly. But when we open app after open the device albums, it is showing the albums in it..

can any one knows how to open albums for the first time itself when app open directly without going to albums

Here is my code to select a photo from albums...

C#
private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            PhotoChooserTask task = new PhotoChooserTask();
            task.Show();
            task.Completed += new EventHandler<PhotoResult>(task_Completed);
        }



Thank you.
Posted

1 solution

is there something like tast.InitialDirectory?

if yes, try:
C#
private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            PhotoChooserTask task = new PhotoChooserTask();
            tast.InitialDirectory = "C://";
            task.Show();
            task.Completed += new EventHandler<PhotoResult>(task_Completed);
        }
 
Share this answer
 
Comments
Mr. Avskmk 25-Nov-13 4:40am    
HiThere is no option like "task.InitialDirectory".

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