选择照片时不加载默认相册 [英] Not Loading default albums while selecting a photo

查看:66
本文介绍了选择照片时不加载默认相册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是第一次开发Windows移动应用程序...



我正在开发Visual Studio C#中的Windows Mobile 8应用程序,从设备相册中选择一张照片并裁剪照片..



我得到的确切输出,但我遇到问题,直接打开应用程序时未加载相册。但是当我们在打开设备相册后打开应用程序时,它会显示其中的相册..



任何人都可以知道如何在第一次打开相册时app直接打开而不去专辑



这是我从相册中选择照片的代码...



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...

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







谢谢。




Thank you.

推荐答案

有类似tast.InitialDirectory吗?



如果是,请尝试:

is there something like tast.InitialDirectory?

if yes, try:
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);
        }


这篇关于选择照片时不加载默认相册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆