Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a 'IsInDesignMode' property in WinRT?

I'm trying to port my application from Phone 7 and can't find the way to detect when control is in Design mode.

Got it - Windows.ApplicationModel.DesignMode.DesignModeEnabled

like image 306
TTRider Avatar asked Oct 02 '11 03:10

TTRider


1 Answers

I am using this:

   if (Microsoft.Devices.Environment.DeviceType == DeviceType.Emulator)

and this

_isInDesignMode 
    = Windows.ApplicationModel.DesignMode.DesignModeEnabled

to check the current developing situation

like image 169
Nasenbaer Avatar answered Oct 01 '22 03:10

Nasenbaer