public static bool IsPhone(this UIDevice device) { return device.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone; }