Determine metro app is running in Windows 8 tab or Desktop PC

前端 未结 3 1133
孤独总比滥情好
孤独总比滥情好 2020-12-06 02:06

I am developing app with windows 8 metro style. This app has some more feature if it running in desktop pc compared to Tablet. But my problem is how to detect app is running

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 02:16

    @Mahantesh: If it's specifically between Desktop PC & Tablet (excluding laptop), then you can check the "battery properties" such as AC/Battery Supply, Battery remaining etc. which as far as I know are available only for computers running on battery power & certainly Desktop doesn't do that.

    In simpler terms, the battery notification is not available for my Desktop PC whereas it's there for my laptop.

提交回复
热议问题