简体   繁体   English

在WP7中显示相机胶卷和图库图像

[英]showing camera roll and gallery images in WP7

I m developing an application in WP7,C#. 我在WP7,C#开发一个应用程序。 When I launch the photochooser task from my application it shows me all the images from cameraroll, sample pictures and media library. 当我从我的应用程序启动photochooser任务时,它会向我显示来自cameraroll,样本图片和媒体库的所有图像。 Actually I would like to show every part seperately. 其实我想分别展示每个部分。 For example when I click a button it should show me only images stored in camera roll. 例如,当我单击一个按钮时,它应该只显示存储在相机胶卷中的图像。 When I click another button it should show images only from media library. 当我点击另一个按钮时,它应该只显示媒体库中的图像。 So please let me know if there is any way to do it. 如果有任何办法,请告诉我。

There is no way to customize the behaviour of the chooser. 无法自定义选择器的行为。

If you want different behaviour you'll need to create the UI yourself and get the images via MediaLibrary.Pictures 如果您想要不同的行为,您需要自己创建UI并通过MediaLibrary.Pictures获取图像

See an example at http://andy-teamg.blogspot.com/2010/07/windows-phone-7-selecting-device-photos.html 请参阅http://andy-teamg.blogspot.com/2010/07/windows-phone-7-selecting-device-photos.html上的示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM