public void Show(Grid parent, ChartPanelViewModel model)
        {
            m_parentGrid = parent;
            m_model = model;

            this.DataContext = m_model;
            parent.Children.Insert(0, this);
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (e.Parameter != null && e.Parameter is ChartPanelViewModel)
            {
                this.m_model = e.Parameter as ChartPanelViewModel;

                this.DataContext = m_model;
            }
        }
 public ChartPanelWrap(FlightDataEntitiesRT.Charts.ChartPanel panel, ChartPanelViewModel viewModel)
 {
     this.m_panel = panel;
     this.viewModel = viewModel;
 }