I am working on a WPF control based on custom elements. For a “normal” layout, think of a vertical StackPanel, so my xaml will look something like this:
<mycontrol>
<item1 />
<item2 />
<item3 />
</mycontrol>
In this case, its simple containers of 3 items are created, and all this is good. The control will look like this:
[item1]
[item2]
[item3]
To use case No. 2, I need to support horizontal "grouping" ... Ideally, my xaml would look like this:
<mycontrol>
<item1 />
<stackpanel orientation=horizontal>
<item2a />
<item2b />
<item2c />
</stackpanel>
<item3 />
</mycontrol>
and in this case I would do as:
[item1]
[item2a] [item2b] [item2c]
[item3]
So, I'm going to create 5 item containers. I have already developed a custom layouts panel, and this part works.
, , 3 , , . - , "" , .
- , WPF, ? "" ?
, , - - :
<item1 />
<item2a isGrouped=true />
<item2b isGrouped=true />
<item2c isGrouped=true />
<item3 />
, isGrouped = true, , , , isGrouped 3 enum enum, . , xaml.
?