Как подключиться к Active Directory с основным контекстом?

Синтаксис новой версии OnPlatform немного отличается

В Xaml:

 <ResourceDictionary>
            <OnPlatform x:Key="SwitchOnColor"  x:TypeArguments="Color" >
                <On Platform="iOS|Android" >#0000FF</On>
                <On Platform="UWP">#FF0000</On>
            </OnPlatform>
 </ResourceDictionary> 

В коде:

 switch (Device.RuntimePlatform)
 {
     case "iOS":
     break;
     case "Android":
     break;
     case "UWP":
     break;
     default:
     break;
 }
13
задан Vítor Martins 27 October 2018 в 01:04
поделиться