Hello,
I still have some difficulties to display my overview in a satisfiable way.
- Some time after, I raise a new issue : the first time I load the overview, all nodes aren’t display. Only a subpart…
diagram model is not yet complete when I set the overview)
<span id=“result_” =“short_text”>
private void QDiagram_Loaded(object sender, RoutedEventArgs e)
{
myDiagram.Model = QDEnv.QD_Model;
QDEnv.QD_Model.Changed += new EventHandler<ModelChangedEventArgs>(QD_Model_Changed);
if (QDEnv.Options.DisplayZoom)
{
if (oZoomWdw == null)
{
dlgLoadZoom oLoadZoom = new dlgLoadZoom(OnLoadZoom);
this.Dispatcher.Invoke(oLoadZoom, System.Windows.Threading.DispatcherPriority.Normal);
//OnLoadZoom();
}
}
}
private void OnLoadZoom()
{
oZoomWdw = new QD_Overview();
oZoomWdw.DataContext = myDiagram;
oZoomWdw.myOverview.Observed = myDiagram;
oZoomWdw.myOverview.DraggingTool = new DraggingTool();
oZoomWdw.myOverview.PartManager = new PartManager();
oZoomWdw.Show();
}
This code solve my problem of initial loading, (I don’t know excatly which Dispatcherproperty I need to use, i will done some test).
Have you an idea why when i don’t override partmanager, i loose the layout and I have some difficult with location property ?
If not, I maybe need to apply the same algorithms for diagram partmanager and overview partmanager.
thanks
Aurore