2016-08-04 30 views
1

Wenn ich versuche, die mahapps zu rufen Fortschritte von Viewmodel-Dialog:Indeterminate Fortschrittsbalken nicht in Mahapps angezeigt bei der Verwendung von DialogCoordinator

public async void Test() 
{ 
    var controller = 
     await 
     this.dialogCoordinator.ShowProgressAsync(
      this, 
      "Progress from VM", 
      "Progressing all the things, wait 3 seconds"); 
    controller.SetIndeterminate(); 

    // await Task.Delay(3000); 

    // await controller.CloseAsync();    
} 

der Dialog gezeigt wird, aber der Rollunbestimmte Fortschritt wird im unteren Teil des Dialogs nicht angezeigt . Die Verwendung von Snoop zum Ausspionieren des XAML zeigt, dass das Steuerelement vorhanden ist, aber die Leiste die rollenden Bälle nicht anzeigt. Irgendwelche Ideen?

+0

Welche Version von MahApps verwenden Sie? – punker76

+0

Ich benutze Version 1.2.4. und war in der Lage, das Problem zu erkennen. Siehe meine Antwort unten. – Beachwalker

Antwort

0

Ich konnte das Problem lösen. Ich habe gerade eine Zeile beim Hinzufügen der Stile verpasst:

<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" /> 
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" /> 
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" /> 
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Baselight.xaml" /> 

<!-- missed the inclusion of accent color style, have own style for anything else so I didn't noticed that --> 
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" /> 

<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Clean/Clean.xaml"/>