FlashMode枚举器值

时间:2014-01-13 16:17:51

标签: flash windows-phone-8 camera

发生了一些奇怪的事情......我写了以下代码:

IReadOnlyList<object> supportedFlashModes = PhotoCaptureDevice.GetSupportedPropertyValues(CameraSensorLocation.Front, KnownCameraPhotoProperties.FlashMode);

_availableStates = new FlashStates();
foreach (uint supportedFlashMode in supportedFlashModes)
{
    _availableStates.Add(
        new FlashState() { State = (FlashMode)supportedFlashMode }
     );
 }

结果是:0,1,3

但FlashMode枚举值为:1,2,3和4 ..没有0值!所以当我尝试使用此代码

检查关闭模式(值= 0)时
_availableStates.Exists(fs => fs.State == mode);

它返回FALSE,应该返回TRUE而不是......

怎么可能?