Skip to content

Instantly share code, notes, and snippets.

View DamienDoumer's full-sized avatar
🎯
Sharpening my dev skills...

Damien Doumer DamienDoumer

🎯
Sharpening my dev skills...
View GitHub Profile
@DamienDoumer
DamienDoumer / DeviceTypeHelper.cs
Last active January 8, 2019 14:32 — forked from wagonli/DeviceTypeHelper.cs
Detect device type on Universal Windows Platform (UWP)
using Windows.System.Profile;
using Windows.UI.ViewManagement;
namespace Wagonli.Tools
{
public static class DeviceTypeHelper
{
public static DeviceFormFactorType GetDeviceFormFactorType()
{
switch (AnalyticsInfo.VersionInfo.DeviceFamily)