0
내 Silverlight 페이지에서 나는 콤보 박스를 가지고 있습니다. 코드 숨김에서 나는과 같이 콤보 상자 항목을 작성하고 있습니다 :Silverlight의 액세스 가능성 Combobox Items
this.ProblemList.Items.Add(Strings.Review_SelectProblem);
this.ProblemList.Items.Add(Strings.Review_IncorrectCharacters);
this.ProblemList.Items.Add(Strings.Review_MissingText);
...
this.ProblemList.SelectedIndex = 0; //Set the default selection
을 다른 곳에서, 내 XAML 페이지에 내가이 일을하여 다른 비 콤보 상자 컨트롤 (장애인) 접근성을 제공하고있다 :
AutomationProperties.Name="{Binding Strings.Review_Access_ParagraphCorrect}"
내 콤보 항목에 접근성을 제공하고 싶지만 내가 찾을 수 있었던 유일한 방법은 지금과 같다 :
AutomationProperties.SetLabeledBy(this.nameInput, this.nameLabel);
이의 문제가 내 콤보 항목에 이름이해야한다는 것입니다
. 프로그래밍 방식으로 콤보 상자 항목에 이름을 지정하려면 어떻게해야합니까? 아니면 콤보 상자 항목의 이름을 참조하지 않고 코드 뒤에 내게 필요한 옵션을 제공 할 수 있습니까? 내가 제대로 이해를 바랍니다
ComboBoxItem tmpItem = new ComboBoxItem();
tmpItem.Content = Strings.Review_SelectProblem;
tmpItem.Name = Strings.Review_SelectProblem;
this.ProblemList.Items.Add(tmpItem);
:
, 당신의 도움을아론이이 같은 것을 사용하려고 할 수 있습니다