Hi,
We want to display overview window for following scenario:
1) We have a user control which hosts our diagram.
2) This user control is hosted in a window say window1 with the name tpgDiagram.
3) We have overview window as owwindow.The xaml code is:
<Window x:Class="Harmonic.GUI.Forms.owwindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="clr-namespace:MindFusion.Diagramming.Wpf;assembly=MindFusion.Diagramming.Wpf"
Title="owwindow" Height="300" Width="300">
<Grid>
<d:Overview Height="Auto" Width="Auto" x:Name="overview" Margin="0, 0, 0, 0"
HorizontalAlignment="Center" VerticalAlignment="Center">
</d:Overview>
</Grid>
</Window>
4) We have a commandbinding class on which we have following code:
owwindow overviewWindow = new owwindow();
overviewWindow.RenderSize = new Size(300, 300);
overviewWindow.Visibility = Visibility.Visible;
overviewWindow.WindowStyle = WindowStyle.ToolWindow;
overviewWindow.overview.Document = refWindow1.tpgDiagram.diagram;
but we are not able to see the overview window it comes up as blank window. And we verified that the diagram is being passed to the overviewWindow.overview.Document
Please suggest what may be the possible cause and any workaround.
Thanks,
Anurodh