WPF Style BasedOn parent Style in current context
问题 Say, I have a default style for a TextBox 'TextBoxStyleBase'. I then define a DataGrid style which has an own TextBox style BasedOn that Base-style, defining another Border Color. In some place inside a DataGrid I want to define another TextBox style but inherit from the one defined in DataGrid style. Is there a way to make a style inherit from the style that is currently defined for a specific control in the current 'context'? EDIT: To make it more clear, here's what I have: <!-- explicit