Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic overview window issue (Read 1829 times)
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
overview window issue
Mar 27th, 2009 at 3:29pm
Print Post  
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:

Code
Select All
<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:

Code
Select All
		    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
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: overview window issue
Reply #1 - Mar 30th, 2009 at 7:06am
Print Post  
Hi,

Remove the HorizontalAlignment="Center" VerticalAlignment="Center" attributes, or instead use Stretch.

Stoyan
  
Back to top
 
IP Logged
 
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: overview window issue
Reply #2 - Mar 30th, 2009 at 9:29am
Print Post  
Thanks for the reply. Yes it solved the problem.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint