2017-05-14 5 views
0

Ich versuche, tu SFBusyIndicator in Xamarin IOS C# verwenden, aber es wird nicht angezeigt ...SFBusyIndicator nicht zeigen nicht

 SFBusyIndicator busyindicator = new SFBusyIndicator(); 

    public TesourariaViewController(IntPtr handle) : base(handle) 
    { 
     busyindicator.Frame = this.View.Bounds; 
     busyindicator.AnimationType = SFBusyIndicatorAnimationType.SFBusyIndicatorAnimationTypeGear; 
     busyindicator.ViewBoxHeight = 200; 
     busyindicator.ViewBoxWidth = 200; 
     busyindicator.Title = (NSString)"Loading..."; 
     busyindicator.FontFace = UIFont.SystemFontOfSize(10, UIFontWeight.Thin); 
     busyindicator.Center = this.View.Center; 
     this.View.Add(busyindicator); 

    } 

ich einen Knopf touchup Ereignis haben in der ViewDidLoad wo ich BusyIndicator nennen .IsBusy = true, aber nichts passiert, der Busy-Indikator wird nicht angezeigt!

Ich glaube, ich mache etwas falsch ... oder etwas fehlt ... Danke

Antwort

0

ich nie benutzt Syncfusion Komponenten, sondern von dem, was ich auf ihrem getting started page sehen kann, Komponente Initialisierung ist ganz anders im Vergleich zu Ihnen : Es ist etwas falsch mit der Ansicht hinzufügen in Ihrem UIVIewController.

Versuchen und Anzeige (für einen Test nur) in ViewDidLoad Verfahren zeigen erstellen

public override void ViewDidLoad() 
{ 
    base.ViewDidLoad(); 
    SFBusyIndicator busyindicator = new SFBusyIndicator(); 
    this.AddSubview(busyindicator); 
    busyindicator.AnimationType=SFBusyIndicatorAnimationType.SFBusyIndicatorAnimationTypeBattery; 
    busyindicator.TextColor=UIColor.RED; 
    busyindicator.ViewBoxHeight=20; 
    busyindicator.ViewBoxWidth=20; 
    busyindicator.IsBusy=True; 
} 
+0

Thank you! Ich habe dasselbe Ergebnis versucht ... – Vssantos7