コードの背後に作成されているComboBoxのComboBoxItemをスタイルする必要があります。ここに私のコードは、これまでデリゲートのパラメータとしてコントロールを渡す方法
ComboBox cbo1 = new ComboBox();
cbo1.IsTextSearchEnabled = true;
cbo1.IsEditable = true;
grid1.Children.Add(cbo1);
cbo1.Dispatcher.BeginInvoke(new StyleComboBoxItemDelegate(ref StyleComboBoxItem(cbo1), System.Windows.Threading.DispatcherPriority.Background);
public delegate void StyleComboBoxItemDelegate(ComboBox cbo_tostyle);
public void StyleComboBoxItem(ComboBox cbo_tostyle)
{
//code to style the comboboxitem;
}
だ私は、次のエラーに
1. A ref or out argument must be an assignable variable
2. Method name expected
を取得しています誰かが私が間違ってやっているものにのようなポインティングで私を助けることができるしてください?
多くのおかげ
スーパークール:)、ありがとう。 –