0
Si je fais ça ...Dispatcher.CurrentDispatcher?
public PriorityQueue(Dispatcher dispatcher = null)
{
this.dispatcher = dispatcher ?? Dispatcher.CurrentDispatcher;
}
Et puis l'utiliser dans un ViewModel (sans passer aucun args) créé par le XAML, this.dispatcher
pointera vers la droite de thread d'interface utilisateur?