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
470
Activate ContentPane
posted

Hi,

I need to activate a ContentPane of a XamDockManager programmatically (preferably MVVM).

How would I do that?

My XAML looks like that:

<dock:XamDockManager x:Name="DOCK" Theme="IGTheme" PaneDragOver="OnPaneDragOver">
    <dock:DocumentContentHost x:Name="CONTENT_HOST" x:FieldModifier="internal">
        <igExtensions:ContentPaneFactory.PaneFactory>
            <igExtensions:ContentPaneFactory x:Name="CNT" ItemsSource="{Binding OpenContentPanes}" HeaderPath="Name" ContainerStyle="{StaticResourcetStyle}"/>
        </igExtensions:ContentPaneFactory.PaneFactory>
    </dock:DocumentContentHost>
</dock:XamDockManager>

Best

Oliver

Parents
  • 34510
    Verified Answer
    Offline posted

    Hi Oliver,

    I modified the ContentPaneFactory to provide a behavior to the ContentPanes it generates.  This behavior binds to a property in the view model that will control active panes.  When you set the view model property, it triggers the behavior to call ContentPane.Activate() which will activate the pains.  Take a look at my attached sample.

    DockManagerBindingSample.zip
Reply Children