In PrepareContainerForItemOverride the item of the ItemControl is set as Content or Header of the Container (depending on the type of the containers). There we do not check whether a non-default value already exists and I guess we can do so.
There are two issues that could arise from that though:
- The container bindings are intended to mimick the StyleBindings in WPF and there the local value of the header will not be overriden by the style (I have not tested this).
- At some places in the code it may be assumed that the item is ineed in the header / content. Again, I am not certain that this is the case.
In short, we did not anticipate that the Header will be set in such a way and it could easily be fixed, but we have to be careful not to break any existing code.
the Telerik team