Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Overview control (Read 11657 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Overview control
Feb 28th, 2008 at 1:10pm
Print Post  
We have completed porting to WPF the Overview control from our Windows Forms package:

https://mindfusion.org/_beta/overview.zip

If anyone wants to try it, also import the .reg file from the zip archive into the Windows registry. Let us know if you have any preferences over which of the Flowchart.NET features we should port next.

Stoyan
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: Overview control
Reply #1 - Mar 13th, 2008 at 4:35pm
Print Post  
Hi Stoyan

I've just started to use the overview control from the v1 release, but I'm don't seem to be able to get anything to display in it.

I'm setting the Diagram property to a reference of my already existing diagram in VB, rather than XAML - are there any breaking changes that may have effected this or am I managing to do somethign wrong again? Smiley

Regards 


Paul
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview control
Reply #2 - Mar 13th, 2008 at 4:45pm
Print Post  
Hi Paul,

Do you mean you are setting the Overview.Document property? Could you post your initialization code for the Overview?

Thanks,
Stoyan
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: Overview control
Reply #3 - Mar 14th, 2008 at 10:37am
Print Post  
Hi Stoyan

My diagram setting line is as follows:

oOverview.Diagram = oFlow

Where oFlow is my existing diagram instance. Initially I had this line in the control contsructor, but as it seemed to have no effect I tried putting it in the Control.Loaded event but again with no effect.



Paul
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview control
Reply #4 - Mar 14th, 2008 at 11:18am
Print Post  
Hi Paul,

What happens if you set oOverview.Document = oFlow ?

Stoyan
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: Overview control
Reply #5 - Mar 14th, 2008 at 11:43am
Print Post  
Hi Stoyan

My last post had a typo - I am indeed setting the Document property, not the Diagram
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview control
Reply #6 - Mar 14th, 2008 at 11:54am
Print Post  
Hi Paul,

Are you sure the oFlow reference is set at that time, i.e. it isn't null/nothing? What are the Overview property values, such as ScaleFactor and FitAll?

Stoyan
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: Overview control
Reply #7 - Mar 14th, 2008 at 2:07pm
Print Post  
Hi stoyan

I created a new project as a test environment for this, to ensure nothing else I've been doing interferes.

I create the Overview via MS Blend and then set the Document using VB.

the Form XAML is as follows:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Window1"
x:Name="Window"
Title="Window1"
Width="640" Height="480"
xmlns:MindFusion_Diagramming_Wpf="clr-namespace:MindFusion.Diagramming.Wpf;assem
bly=MindFusion.Diagramming.Wpf">

<Grid x:Name="LayoutRoot">
<MindFusion_Diagramming_Wpf:Diagram Margin="8,130,292,110" x:Name="oFlow"/>
<MindFusion_Diagramming_Wpf:Overview HorizontalAlignment="Right" Margin="0,139,38,125" Width="235" Content="Overview" x:Name="oOverview" />
</Grid>
</Window>

The following shows where I have attempted to set the document property:

Partial Public Class Window1
Public Sub New()
MyBase.New()

Me.InitializeComponent()


' Insert code required on object creation below this point.

'oOverview.Document = oFlow
End Sub

Private Sub Window1_Initialized(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Initialized

'oOverview.Document = oFlow
End Sub

Private Sub Window1_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded

oOverview.Document = oFlow
End Sub
End Class

I have also noticed it is not possible to set the Document property via VS properties interface.



Paul


[Edit]
I just noticed that the 2 properties  you mentioned are not included in teh default XAML:

Scale factor is set to 30 - this seems to be unchangeable in the Blend UI - the xaml will update but the UI property value always reverts to 30.

Fit all is True.
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview control
Reply #8 - Mar 14th, 2008 at 2:34pm
Print Post  
Hi,

It seems the Content="Overview" attribute replaces an internal Visual we use to render the diagram with a TextBlock. Remove that for now. For the next release we'll try to implement a way to let you add custom content to the overview window, if that's what you tried to do.

Stoyan
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: Overview control
Reply #9 - Mar 14th, 2008 at 3:06pm
Print Post  
Excellent news - my boss will be happy Smiley  The content tag was automaticly populated by MS Blend.

Thanks for all the assisance.


Paul
  
Back to top
WWW  
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: Overview control
Reply #10 - Mar 17th, 2008 at 1:35pm
Print Post  
Hi Stoyan

Do you have any sample code you could refer me to regarding changing the appearance of the overview?  Our key area of interest is modifying the border of the visible area box.  I', guessing this may be style related but any guidance would be apprieciated.


Many thanks


Paul
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview control
Reply #11 - Mar 17th, 2008 at 2:09pm
Print Post  
Hi Paul,

The border appearance cannot be changed at this time. For the next release we'll add a property to let you do that.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint