|
92 | 92 | AutomationProperties.Name="{x:Static resx:ResUI.menuRouting}"
|
93 | 93 | DisplayMemberPath="Remarks"
|
94 | 94 | FontSize="{DynamicResource StdFontSize}"
|
95 |
| - Style="{StaticResource MaterialDesignFloatingHintComboBox}" /> |
| 95 | + Style="{StaticResource MaterialDesignFloatingHintComboBox}"> |
| 96 | + <ComboBox.ItemContainerStyle> |
| 97 | + <Style TargetType="ComboBoxItem"> |
| 98 | + <Setter Property="AutomationProperties.Name" Value="{Binding Remarks}" /> |
| 99 | + </Style> |
| 100 | + </ComboBox.ItemContainerStyle> |
| 101 | + </ComboBox> |
96 | 102 | </StackPanel>
|
97 | 103 |
|
98 | 104 | <StackPanel Margin="{StaticResource MarginLeftRight8}" VerticalAlignment="Center">
|
|
184 | 190 | AutomationProperties.Name="{x:Static resx:ResUI.menuRouting}"
|
185 | 191 | DisplayMemberPath="Remarks"
|
186 | 192 | FontSize="{DynamicResource StdFontSize}"
|
187 |
| - Style="{StaticResource MaterialDesignFilledComboBox}" /> |
| 193 | + Style="{StaticResource MaterialDesignFilledComboBox}"> |
| 194 | + <ComboBox.ItemContainerStyle> |
| 195 | + <Style TargetType="ComboBoxItem"> |
| 196 | + <Setter Property="AutomationProperties.Name" Value="{Binding Remarks}" /> |
| 197 | + </Style> |
| 198 | + </ComboBox.ItemContainerStyle> |
| 199 | + </ComboBox> |
188 | 200 | </DockPanel>
|
189 | 201 | </MenuItem.Header>
|
190 | 202 | </MenuItem>
|
|
198 | 210 | AutomationProperties.Name="{x:Static resx:ResUI.menuServers}"
|
199 | 211 | DisplayMemberPath="Text"
|
200 | 212 | FontSize="{DynamicResource StdFontSize}"
|
201 |
| - Style="{StaticResource MaterialDesignFilledComboBox}" /> |
| 213 | + Style="{StaticResource MaterialDesignFilledComboBox}"> |
| 214 | + <ComboBox.ItemContainerStyle> |
| 215 | + <Style TargetType="ComboBoxItem"> |
| 216 | + <Setter Property="AutomationProperties.Name" Value="{Binding Text}" /> |
| 217 | + </Style> |
| 218 | + </ComboBox.ItemContainerStyle> |
| 219 | + </ComboBox> |
202 | 220 | </DockPanel>
|
203 | 221 | </MenuItem.Header>
|
204 | 222 | </MenuItem>
|
|
0 commit comments