Search found 3 matches

by kristoffer.sjoo
24 Apr 2024, 09:33
Forum: General Discussion
Replies: 4
Views: 414

Re: Hybrid UserControl

Alright, thanks for your help. I'm getting very close to what I want by using HeaderedItemsControl, with a default Style. The key was that I was unaware that you could provide ItemsControl with content in XAML like this and of the existence of ItemsPresenter.
by kristoffer.sjoo
12 Apr 2024, 13:02
Forum: General Discussion
Replies: 4
Views: 414

Re: Hybrid UserControl

There's no data collection involved, just the XAML - in my example, two TextBlocks. Note that they would not necessarily be two, and not necessarily TextBlocks, and not necessarily the same as each other. Basically, I want to be able to use it just like I would a StackPanel. Can I use an ItemCollect...
by kristoffer.sjoo
08 Apr 2024, 08:18
Forum: General Discussion
Replies: 4
Views: 414

Hybrid UserControl

I spent some time last week trying to write a subclass to UserControl which accepts XAML children - a sort of custom StackPanel which allows me to add a header and frame the contents as I like. What I want is to be able to do is something like the following <MultiContentControl> <TextBlock Text=&quo...