Hello,
When I redefine Header of a igDock:ContentPane Like this :
<
igDock:ContentPane.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Foreground="White" Text="Elements"/>
<TextBlock Foreground="White" Text=" ("/>
<TextBlock Foreground="White" Text="{Binding Depots.Count}"/>
<TextBlock Foreground="White" Text=")"/>
</StackPanel>
</igDock:ContentPane.Header>
I have on error when I pinned the panel : {"The specified item is already the logical child of another element. Disconnect it first."}
An issue ? Thanks in advance !
I would recommend not putting elements into the Header. The Header is also used as the default value for the TabHeader (as well as being used in the pane navigator). Since elements can only be hosted in one visual you will end up hitting issues. If you want to change the elements used in the header then I would recommend either setting the HeaderTemplate to a DataTemplate that contains the elements that should be generated or retemplate the PaneHeaderPresenter.
Thanks Andrew !
That's Work with HeaderTemplate but when my Panel is Pinned I Want the Header isn't the same ! How can I have the same Header ?
Thanks !