Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic bug fixes and ContainerNodes (Read 4049 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
bug fixes and ContainerNodes
Jun 2nd, 2008 at 10:42am
Print Post  
This version adds ContainerNodes to WpfDiagram:
https://www.mindfusion.eu/_beta/wpfdiag101pre.zip

It also contains fixes for most of the bugs that have been reported in the last few weeks:
- link tooltips not displaying
- node tooltips not displaying at the expected position after resizing nodes
- properties set to a dynamic resource not updating correctly for custom controls added to the Diagram
- serialization of pens' DashStyle

It turned out the TooltipService depends on the WPF layout system for finding the positions of items, so the tooltip fixes require more frequent calls to UIElement.Arrange. In the next few days we'll test if there is any negative performance impact because of that.

The dynamic resources fix required changing the base of Diagram.DocumentPlane from UIElement to FrameworkElement, which could lead to some focus management or event routing issues. We'll test this as well before the 1.0.1 release.

If anyone needs a licensed build of the updated assembly, please contact us by email.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: bug fixes and ContainerNodes
Reply #1 - Jun 11th, 2008 at 11:16am
Print Post  
This version fixes a few more bugs:
https://www.mindfusion.eu/_beta/wpfdiag101pre.zip

- setting a new AnchorPattern did not remove the old anchor points from the WPF visual tree
- incorrect TableRow value passed to LinkCreating and LinkModifying event handlers

If anyone needs a licensed build of the updated assembly, please contact us by email.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Ruler control
Reply #2 - Jun 25th, 2008 at 10:54am
Print Post  
This version adds a Ruler control to the WpfDiagram assembly:
https://www.mindfusion.eu/_beta/wpfdiag101pre.zip

The Ruler can be used instead of a ScrollViewer to implement scrolling. Additionally, it displays scales that help for measuring and aligning diagram items.

The ruler tracks mouse movements and modifications being performed on an item, and displays markers over the scales indicating the current position in the diagram's coordinate system. The colors of these markers can be changed using the PointerColor and ProjectionColor properties.

If EnableGuides is set to true, the ruler allows aligning several items by clicking on a scale and dragging. That displays alignment guides which follow the mouse pointer and move all selected items on their way. If no diagram elements are selected, all items are moved.

The following Xaml shows how to load a Diagram inside a Ruler.

Code
Select All
<Window x:Class="Test.Window1"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	Title="Window1" Height="300" Width="300"
	xmlns:rl="clr-namespace:MindFusion.Diagramming.Wpf.Ruler;assembly=MindFusion.Diagramming.Wpf"
	xmlns:diag="clr-namespace:MindFusion.Diagramming.Wpf;assembly=MindFusion.Diagramming.Wpf">
	<Grid>
		<rl:Ruler Name="ruler1">
			<diag:Diagram Name="diagram" />
		</rl:Ruler>
	</Grid>
</Window>
 



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