要求页面

通过勾选以上硬件信息可以防止你的应用安装到不支持次硬件要求的设备上:

当然我们在代码中也都是可以禁用和判断这些功能是否支持,在这里我建议大家在尽可能的情况下通过代码的方式来 设配一些硬件不支持的情况,在没有办法的情况下载抛弃部分设备。
例如判断一个设备是否支持闪光灯并且控制打开关闭的代码如下:
// Activate a flash mode. // Cycle through flash mode options when the flash button is pressed. private void changeFlash_Clicked(object sender, RoutedEventArgs e) { switch (cam.FlashMode) { case FlashMode.Off: if (cam.IsFlashModeSupported(FlashMode.On)) { // Specify that flash should be used. cam.FlashMode = FlashMode.On; FlashButton.Content = "Fl:On"; currentFlashMode = "Flash mode: On"; } break; case FlashMode.On: if (cam.IsFlashModeSupported(FlashMode.RedEyeReduction)) { // Specify that the red-eye reduction flash should be used. cam.FlashMode = FlashMode.RedEyeReduction; FlashButton.Content = "Fl:RER"; currentFlashMode = "Flash mode: RedEyeReduction"; } else if (cam.IsFlashModeSupported(FlashMode.Auto)) { // If red-eye reduction is not supported, specify automatic mode. cam.FlashMode = FlashMode.Auto; FlashButton.Content = "Fl:Auto"; currentFlashMode = "Flash mode: Auto"; } else { // If automatic is not supported, specify that no flash should be used. cam.FlashMode = FlashMode.Off; FlashButton.Content = "Fl:Off"; currentFlashMode = "Flash mode: Off"; } break; case FlashMode.RedEyeReduction: if (cam.IsFlashModeSupported(FlashMode.Auto)) { // Specify that the flash should be used in the automatic mode. cam.FlashMode = FlashMode.Auto; FlashButton.Content = "Fl:Auto"; currentFlashMode = "Flash mode: Auto"; } else { // If automatic is not supported, specify that no flash should be used. cam.FlashMode = FlashMode.Off; FlashButton.Content = "Fl:Off"; currentFlashMode = "Flash mode: Off"; } break; case FlashMode.Auto: if (cam.IsFlashModeSupported(FlashMode.Off)) { // Specify that no flash should be used. cam.FlashMode = FlashMode.Off; FlashButton.Content = "Fl:Off"; currentFlashMode = "Flash mode: Off"; } break; } // Display current flash mode. this.Dispatcher.BeginInvoke(delegate() { txtDebug.Text = currentFlashMode; }); }
更多的代码示例和解释请参考: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206936(v=vs.105).aspx#BKMK_Hardwarerequirements
打包页面

您也可以指定默认语言和该页面支持的其他语言。您为默认语言和支持的语言提供的值决定了用户在 Store 中看到的您的应用的语言支持情况。您可以手动编辑这两个值。但是,它们与项目属性中的非特定语言和支持的区域性设置密切相关。对于所有设备是样的。
