更新时间:2023-02-10 07:41:59
您正在尝试执行非常基本的样式,这无法帮助您区分诸如TextItem
的标题之类的细节。要解决这些问题,你需要了解一般的WPF模板和样式主题。
你可以从这里开始: https://msdn.microsoft.com/en-us/library/ms745683%28v=vs.110%29.aspx [ ^ ]。
请参阅专门讨论TabItem
样式的文章:http://www.wpf-tutorial.com/tabcontrol/styling-the-tabitems [ ^ ]。-SA
You are trying to do very basic styling which cannot help you to distinguish such detail as the title ofTextItem
. To solve such problems, you need to understand general WPF templating and styling topics.
You can start here: https://msdn.microsoft.com/en-us/library/ms745683%28v=vs.110%29.aspx[^].
Please see this article specifically devoted to theTabItem
styling: http://www.wpf-tutorial.com/tabcontrol/styling-the-tabitems[^].—SA