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
415
Dockmanager creating two instances?
posted

I have a usercontrol in a content pane.  If I use mvvm datatemplate to create my view:

    <DataTemplate DataType="{x:Type platevm:PlateViewModel}" >

        <plate:PlateView />

    </DataTemplate>

The view is instantiated twice if in a content pane.  So:

<Grid>
    <igDock:XamDockManager>
        <igDock:XamDockManager.Panes>
            <igDock:SplitPane>
                <igDock:ContentPane>
                    <platevm:PlateViewModel />
                </igDock:ContentPane>
            </igDock:SplitPane>
        </igDock:XamDockManager.Panes>
    </igDock:XamDockManager>
</Grid>
Creates two instances of the PlateView.  If I switch to <plate:PlateView /> only one is created.  
Why is this?  It is really messing with some of my code....

Parents Reply Children
No Data