I
I
iRumba2015-08-17 13:00:57
WPF
iRumba, 2015-08-17 13:00:57

What is the correct way to write a template to insert a HeaderedContentControl into a TabControl?

Hello. There is a TabControl. I point to it in ItemSource a collection of elements - heirs from HeaderedContentControl, but the title of the tab does not become by default the Header property from the HeaderedContentControl instance. Why, by the way?
How can I create a TabControl template that inserts Content into Content and Header into Header? I found several examples on the Internet, but for various reasons they do not fit my case (more precisely, I don’t know how to modernize them for my case)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sumor, 2015-08-17
@Sumor

And why not just inherit from TabItem - it is actually created to be a TabControl element. There are both Header and Content.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question