Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
670
Redefinie Header
posted

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>

 

 

 

 

</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 !

Parents
No Data
Reply
  • 54937
    Offline posted

    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.

Children