Click here to Skip to main content
15,906,329 members
Home / Discussions / Windows Development
   

Windows Development

 
QuestionWindows 8, Get list of drives Pin
USAFHokie8021-Sep-12 5:39
USAFHokie8021-Sep-12 5:39 
AnswerRe: Windows 8, Get list of drives Pin
BrowniePoints26-Oct-12 10:29
BrowniePoints26-Oct-12 10:29 
QuestionSave Canvas as image in WINRT using C# Pin
Vivek Deshmukh20-Sep-12 0:56
Vivek Deshmukh20-Sep-12 0:56 
AnswerRe: Save Canvas as image in WINRT using C# Pin
Richard MacCutchan20-Sep-12 2:32
mveRichard MacCutchan20-Sep-12 2:32 
GeneralRe: Save Canvas as image in WINRT using C# Pin
Vivek Deshmukh20-Sep-12 2:35
Vivek Deshmukh20-Sep-12 2:35 
Questionmetro torrent Pin
sealmu18-Sep-12 6:51
sealmu18-Sep-12 6:51 
QuestionMetro Camera AP snap shot event Pin
ej_evo17-Sep-12 19:59
ej_evo17-Sep-12 19:59 
AnswerRe: Metro Camera AP snap shot event Pin
pramod.hegde17-Sep-12 23:31
professionalpramod.hegde17-Sep-12 23:31 
Have a button in the UI, called 'btnCapture' and an image called 'imgPhoto'
In the click event of this button, have the following code. Also, make the click event async.

C#
private async void btnCapture_Click(object sender, RoutedEventArgs e)
{
   CameraCaptureUI dialog = new CameraCaptureUI();
   StorageFile file = await dialog.CaptureFileAsync(CameraCaptureUIMode.Photo);
   if (file != null)
   {
     BitmapImage bitmapImage = new BitmapImage();
     using (IRandomAccessStream fileStream = await file.OpenAsync(FileAccessMode.Read))
     {
       bitmapImage.SetSource(fileStream);
     }
     imgPhoto.Source = bitmapImage;
   }
}


In case of system resource access, Metro Apps work in the same way as Silverlight. So you need to explicitly provide access for the application to access Webcam and Microphone. You can give this permission in Capabilities tab of Application Manifest.
GeneralRe: Metro Camera AP snap shot event Pin
ej_evo19-Sep-12 0:01
ej_evo19-Sep-12 0:01 
QuestionHow To Create Draggable and Drappable List Of Controls? Pin
Bardiamarzbani13-Sep-12 12:36
Bardiamarzbani13-Sep-12 12:36 
QuestionShow UserControls In “ItemsControl” with custom option in XAML Pin
Bardiamarzbani13-Sep-12 11:53
Bardiamarzbani13-Sep-12 11:53 
Questionwhat is winRT? Pin
vishalgpt2-Sep-12 7:20
vishalgpt2-Sep-12 7:20 
AnswerRe: what is winRT? Pin
SoMad2-Sep-12 9:54
professionalSoMad2-Sep-12 9:54 
QuestionA question about mixing technologies... Pin
Super Lloyd25-Aug-12 19:00
Super Lloyd25-Aug-12 19:00 
AnswerRe: A question about mixing technologies... Pin
David C# Hobbyist.26-Mar-13 9:00
professionalDavid C# Hobbyist.26-Mar-13 9:00 
GeneralRe: A question about mixing technologies... Pin
Super Lloyd26-Mar-13 14:56
Super Lloyd26-Mar-13 14:56 
Questioninstalling Chrome (and, maybe, FF) on Metro: Link to How-To-Geek article Pin
BillWoodruff24-Jul-12 15:16
professionalBillWoodruff24-Jul-12 15:16 
AnswerRe: installing Chrome (and, maybe, FF) on Metro: Link to How-To-Geek article Pin
Christian Amado2-Aug-12 9:41
professionalChristian Amado2-Aug-12 9:41 
Questionessay/interview on Flash in IE10 in Win8 about which there has been a lot of confusion among developers Pin
BillWoodruff13-Jul-12 19:18
professionalBillWoodruff13-Jul-12 19:18 
AnswerRe: essay/interview on Flash in IE10 in Win8 about which there has been a lot of confusion among developers Pin
Christian Amado2-Aug-12 9:39
professionalChristian Amado2-Aug-12 9:39 
QuestionChange the wallpaper Pin
AvivaPhong5-Jul-12 15:56
AvivaPhong5-Jul-12 15:56 
AnswerRe: Change the wallpaper Pin
Philippe Mori5-Jul-12 16:09
Philippe Mori5-Jul-12 16:09 
QuestionWPF Win 8 Desktop App Buttons Pin
Kevin Marois29-Jun-12 11:10
professionalKevin Marois29-Jun-12 11:10 
Questionsaving canvas as image in metro style app Pin
Farhan Ghumra27-Jun-12 22:50
professionalFarhan Ghumra27-Jun-12 22:50 
QuestionHow to start learning windows phone applications develop? Pin
lixiaobin52527-Jun-12 4:14
lixiaobin52527-Jun-12 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.