Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) WpfDiagram V2.5 beta (Read 6138 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
WpfDiagram V2.5 beta
Nov 3rd, 2010 at 1:31pm
Print Post  
We are starting beta tests of WpfDiagram 2.5. The new features are:

Swimlane layout
SwimlaneLayout can be used to arrange process diagrams in which nodes representing activities are placed in swimlanes representing resources. The index of the resource allocated to an activity should be assigned to the corresponding node's LayoutTraits[SwimlaneLayoutTraits.Lane].

By default, the algorithm works with the diagram's LaneGrid, but its SwimlaneGrid property can be set to any class that implements ISwimlaneGrid. This allows applying the layout to a custom-drawn grid rendered through the DrawBackground event, or one composed of locked background nodes.


CascadeLayout algorithm
CascadeLayout places vertices on a virtual grid and arranges edges orthogonally, such that if the source graph is planar it is guaranteed that all edges will have no more than two bends and will not intersect.


TriangularLayout algorithm
TriangularLayout places vertices on a virtual grid, such that if the source graph is planar it is guaranteed that all edges will have a single segment and will not intersect. If the graph is not planar, the intersecting edges are optionally segmented and bended in order to improve readability.


HierarchicalLayout algorithm
HierarchicalLayout places vertices on predefined levels, such that if the source graph is level-planar it is guaranteed that all edges will have a single segment and will not intersect.


OrtogonalLayout improvements
OrtogonalLayout results have been greatly improved for nonplanar graphs.

Swimlane extensions
~ The lane grid can be printed by setting PrintOptions.EnableLanes = true;
~ The text of lane headers can be edited by the user if LaneGrid.AllowInplaceEdit is enabled;

If anyone is interested in trying the beta, please download this archive, which includes updated assemblies and help file: 

https://mindfusion.eu/_beta/WpfDiagram.2.5.zip
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: WpfDiagram V2.5 beta
Reply #1 - Nov 8th, 2010 at 3:07pm
Print Post  
Hello Stoyo,

i like the Swimlane extensions.

I downloaded the beta, but:
- i get an exception with my current project ("LC.exe" wurde mit dem Code -1 beendet.)

- it's not a big deal. I can wait a little bit for the final. Do you have an release date in mind for 2.5?

Amosius
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: WpfDiagram V2.5 beta
Reply #2 - Nov 8th, 2010 at 3:31pm
Print Post  
Hi Amosius,

Try editing the project's licenses.licx and set PublicKeyToken=null at the end of the diagram's line. Then it should work for any version of the assemblies. We'll release it on Friday if we don't find any bugs by then.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: WpfDiagram V2.5 beta
Reply #3 - Nov 8th, 2010 at 4:52pm
Print Post  
Hi Stoyo,

sounds good, thanks.

Amosius

  
Back to top
 
IP Logged
 
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
Re: WpfDiagram V2.5 beta
Reply #4 - Nov 17th, 2010 at 1:50pm
Print Post  
Will this release also fix the printpreview method?

This was your earlier comment:

"We add [SecuritySafeCritical] attribute to such methods but haven't noticed PrintPreview requires it too. We'll have a new release in a few days and will add the attribute there."

Right now our diagram will not allow users to print because of this problem.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: WpfDiagram V2.5 beta
Reply #5 - Nov 17th, 2010 at 2:24pm
Print Post  
It should. Last week I sent you a PM with updated release build - haven't you tried it? You should see a link to the PM page at the top of the forum page.
  
Back to top
 
IP Logged
 
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
Re: WpfDiagram V2.5 beta
Reply #6 - Nov 17th, 2010 at 3:41pm
Print Post  
Thanks... I don't get the error i was getting when trying to printpreview.

But, is there a way to prevent it from splitting my node across a page break?  I am using tablenodes with a set number of rows, and when one of them appears at the bottom of a page it is split.

Also, with this build, my export to PDF and WMF do not work.  I get most of the text, but, my table nodes are messed up.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: WpfDiagram V2.5 beta
Reply #7 - Nov 17th, 2010 at 4:22pm
Print Post  
About PDF and WMF, could you check this newer build?
https://mindfusion.eu/_beta/wpfdiag25_net4.zip

There's no built-in feature available to prevent splitting nodes at page boundaries. If you are generating the diagram automatically, you could try to offset nodes that lie at the A4 page breaks further down. If your application allows drawing diagrams interactively, perhaps you could render a background grid that shows the page boundaries to let users avoid drawing there.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
Re: WpfDiagram V2.5 beta
Reply #8 - Nov 17th, 2010 at 4:43pm
Print Post  
That fixed the printing and the export problem.

But, now the  text inside of my tablenodes no longer fits on the rows as it did before.  Even if i adjust the fontsize it seems to ignore it and the text looks larger than it did before.  It is also larger than the text in my other nodes.

I also have a message at the top of the diagram that says Midnfusion.Diagramming 2.5 beta.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: WpfDiagram V2.5 beta
Reply #9 - Nov 17th, 2010 at 5:50pm
Print Post  
Quote:
now the  text inside of my tablenodes no longer fits on the rows as it did before.  Even if i adjust the fontsize it seems to ignore it and the text looks larger than it did before.  It is also larger than the text in my other nodes.


In V2.5 table cells default text attributes are defined through TableNode.CellTextStyle - this is to allow setting them independently from the caption attributes.

Quote:
I also have a message at the top of the diagram that says Midnfusion.Diagramming 2.5 beta.


Yes, it's beta version. We'll release the official upgrade tomorrow if you don't see any other problems.

Stoyan
  
Back to top
 
IP Logged
 
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
Re: WpfDiagram V2.5 beta
Reply #10 - Nov 17th, 2010 at 8:20pm
Print Post  
Thanks...

As of now, it seems  to be working.
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: WpfDiagram V2.5 beta
Reply #11 - Nov 25th, 2010 at 10:49am
Print Post  
Hello,

i used the new feature Inplaceedit for Headers.
Code
Select All
            p.Diagram.LaneGrid.AllowInplaceEdit = true; 



I expected to make a doubleclick on the header, same like inplaceedit for ShapeNodes.

Nothing happens on the headers. Do you have any clues for that?

Amosius
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: WpfDiagram V2.5 beta
Reply #12 - Nov 25th, 2010 at 12:11pm
Print Post  
Now we see the text box remains behind the headers if HeadersOnTop is set to true - is it enabled in your project? For now you could toggle it from the EnterInplaceEditMode and LeaveInplaceEditMode handlers to make sure the text box is visible.
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: WpfDiagram V2.5 beta
Reply #13 - Nov 25th, 2010 at 2:23pm
Print Post  
Hi Stoyan,

i had HeadersOnTop = true.
I changed it and it works fine.

Amosius

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