thurbo wrote:
Not sure if this is a solution but maybe it will help:
it seems that a Template needs to be added to the DragDockPanelHost Style (I added one with an empty ControlTemplate) and now PrepareContainerForItemOverride gets called.
Greetings,
Jeroen
Correction:
The ControlTemplate should contain an ItemsPresenter. So with the new property the Style would look like this:
<Style TargetType="local:DragDockPanelHost">
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<Canvas />
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:DragDockPanelHost">
<ItemsPresenter/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Now the sample UserControl (DragDockPanelSample) does show the panels in an WPF application. Unfortunately, drag & drop does not seem to work flawless...
Jeroen
|