Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

How to select control in XAML based on platform

$
0
0

I have the existing xaml with DatePicker and TimePicker shown below.

Because DatePicker and TimePicker are not working on macOS I have to create myMacOSDatePicker and myMacOSTimePicker.

How do I select control in the XAML based on platform, so that On "Droid, iOS, UWP" the DatePicker and TimePicker are used, but On "macOS" myMacOSDatePicker and myMacOSTimePicker are used ?

Thanks in advance
Eigil

Existing XAML:



Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>