Hi,@Ajay Gera. Welcome to Microsoft Q&A.
You could refer to the following code to read the contents of the ComboBox.
<Grid>
<ComboBox x:Name="MyComboBox" HorizontalAlignment="Center" VerticalAlignment="Center" Width="50" AutomationProperties.Name="My ComboBox" AutomationProperties.LabeledBy="{Binding ElementName=MyComboBox}" >
<ComboBoxItem Content="AA" AutomationProperties.Name="MY AA"></ComboBoxItem>
<ComboBoxItem Content="BB" AutomationProperties.Name="MY BB"></ComboBoxItem>
<ComboBoxItem Content="CC" AutomationProperties.Name="MY CC"></ComboBoxItem>
</ComboBox>
</Grid>
Run the WPF project and open Narrator by Win+Ctrl+Enter
. When the mouse clicks on the ComboBox, you could hear the content of AutomationProperties.Name
in the ComboBox, and when the mouse moves to the ComboBoxItem, you could hear the content of AutomationProperties.Name
in the ComboBoxItem.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.