Muhammad Saifullah
Muhammad Saifullah

Reputation: 4292

How to access ContactStore in Shared project

Contact Store which is in Windows.ApplicationModel is accessable in windows phone 8.1 project but it is not accessible in my View model which is in my shared project. Does anyone know how to access this in shared project?

Upvotes: 0

Views: 45

Answers (1)

Arun Selva Kumar
Arun Selva Kumar

Reputation: 2732

You can just use Conditional Compilation Constants inside the Shared Project

#if WINDOWS_APP
     //do your logic here
#else
     //do windows phone logic here
#endif

Upvotes: 1

Related Questions