請問我有錯誤,這是我的代碼。調度員'沒有包含'InvokeAsync'的定義,也沒有擴展方法'InvokeAsync'
private void ComboBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
{
_comboBox.Dispatcher.InvokeAsync(() => ContentChanged?.Invoke(sender, EventArgs.Empty));
}
其說Dispatcher' does not contain a definition for 'InvokeAsync' and no extension method 'InvokeAsync' accepting a first argument of type 'Dispatcher' could be found (are you missing a using directive or an assembly reference? wpf
我迷路了,請,我需要這些幫助。謝謝。
寫入它作爲''_comboBox.Dispatcher.InvokeAsync((動作)(()=> ContentChanged?.Invoke(sender,EventArgs.Empty)));'' –
@RandRandom同樣的問題先生... –