WPF Custom Control - ItemsControl template not being applied.

Posted by Patrick White on Stack Overflow See other posts from Stack Overflow or by Patrick White
Published on 2010-05-01T06:00:04Z Indexed on 2010/05/01 6:07 UTC
Read the original article Hit count: 721

Filed under:
|

I'm building a custom WPF control that derives from TabControl. In the ControlTemplate, I'm using a ItemsControl to display a list that is being bound from the template (an observable collection of type FileMenuItem). During program execution, I'm getting the following error in the output window:

ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='FileMenuItem'

The type FileMenuItem is derived from MenuItem.

I googled the error and couldn't find anything about it, has anyone run into this while developing custom controls?

I can post more code if it would help. Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf