jjzjj

openPicker

全部标签

c# - 如何在 Windows 8 中选择和使用图像

我正在将我的WindowsPhone8应用程序移植到Windows8,我需要选择一张图片并为​​其设置图片源!我今天必须移植它。我用过这个:FileOpenPickeropenPicker=newFileOpenPicker();openPicker.ViewMode=PickerViewMode.Thumbnail;openPicker.SuggestedStartLocation=PickerLocationId.PicturesLibrary;openPicker.FileTypeFilter.Add(".jpg");openPicker.FileTypeFilter.Add("