locked
How to turn on the FlashLight? RRS feed

  • Question

  • How to turn on the FlashLight in Windows Store Apps?


    Tariq

    Thursday, August 14, 2014 8:06 PM

Answers

  • Use 

    MediaCapture.VideoDeviceController.TorchControl.Enabled = true;
    MediaCapture.VideoDeviceController.TorchControl.PowerPercent = 100;


    Tariq

    Thursday, August 14, 2014 8:59 PM

All replies

  • Use 

    MediaCapture.VideoDeviceController.TorchControl.Enabled = true;
    MediaCapture.VideoDeviceController.TorchControl.PowerPercent = 100;


    Tariq

    Thursday, August 14, 2014 8:59 PM
  • Hi Tariq,

    Thanks for sharing the solution. Should help others.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, August 15, 2014 6:12 AM
    Moderator