Xamarin.Forms                
            Plattformspezifisches Verhalten
        
        
            
    Suche…
Bemerkungen
Zielplattformen
if(Device.OS == TargetPlatform.Android)
{
}
else if (Device.OS == TargetPlatform.iOS)
{
}
else if (Device.OS == TargetPlatform.WinPhone)
{
}
else if (Device.OS == TargetPlatform.Windows)
{
}
else if (Device.OS == TargetPlatform.Other)
{
}
Symbol im Navigationsheader in Anroid entfernen
  Verwenden Sie ein kleines transparentes Bild namens empty.png
 Verwenden Sie ein kleines transparentes Bild namens empty.png 
public class MyPage : ContentPage
{
    public Page()
    {
        if (Device.OS == TargetPlatform.Android)
            NavigationPage.SetTitleIcon(this, "empty.png");
    }
}
Verkleinern Sie die Schriftgröße des Labels in iOS
Label label = new Label
{
    Text = "text"
};
if(Device.OS == TargetPlatform.iOS)
{
    label.FontSize = label.FontSize - 2;
}
Modified text is an extract of the original Stack Overflow Documentation
        Lizenziert unter CC BY-SA 3.0
        Nicht angeschlossen an Stack Overflow