0

Is it possible to override TextBox.HeaderTemplate so that it can display complex content - like a StackPanel with multiple items?

<Setter Property="HeaderTemplate">
    <Setter.Value>
        <DataTemplate>
            <ContentControl Content="{Binding}" />
        </DataTemplate>
    </Setter.Value>
</Setter>

I'm trying to do this for testing and it doesn't work.

Konstantin S.
  • 1,307
  • 14
  • 19

1 Answers1

0
<ContentControl Content="{Binding Content, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
Konstantin S.
  • 1,307
  • 14
  • 19