Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道如何更改 AutoCompleteBox 下拉列表中所选项目的背景吗?
如果您只想设置所选项目的背景,您只需覆盖SystemColors.HighlightBrushKey
SystemColors.HighlightBrushKey
<sdk:AutoCompleteBox> <sdk:AutoCompleteBox.Resources> <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Red"/> </sdk:AutoCompleteBox.Resources> </sdk:AutoCompleteBox>