코드 뒤에 작성되는 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
을 얻고 지금까지의 내가 잘못 뭐하는 거지 사람에 관한 가리키는에서 나를 도울 수하세요?
많은 감사
슈퍼 멋진 :), 정말 고마워. –