Bonjour,
J'utilise ce composant http://www.codersengine.com/forum/11...r-progress-bar afin de l'afficher quand un gros traitement est exécuté. Le problème c'est que lorsque je souhaite le lancer, l'animation se lance une fois le traitement terminé:
Selon la visibilié, la storyboard du composant se lance ou s'arrete. Donc en voyant se problème, j'ai pensé à le lancer dans un autre thread, mais en faisant j'ai un message qui me dit que le composant est utilisé par un autre thread...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 private void RunClick( object sender, EventArgs e ) { splashProcess.Visibility = System.Windows.Visibility.Visible; List<AirportSimuException> errors = CheckSimulation( ); foreach ( AirportSimuException error in errors ) { outputControl.AddException( error ); } if ( errors.Count > 0 ) { navigationBar.Status = Navigation.StateMode.Stop; return; } RouteCalculation( ); splashProcess.Visibility = System.Windows.Visibility.Hidden; }
Merci de votre aide
Partager