WPF samples don't compile or where is http://sharpvectors.codeplex.com/runtime/"

Topics: Animation and Interactivity, Samples and Test Suite
Apr 23, 2013 at 6:13 AM
I'm new to WPF,
Tried the GDI samples and they work OK, but too limited functionality. So I thought I'd learn WPF.
None of the samples I tried compile. I've listed 2 of the samples with errors here:
<svg:ZoomPanControl x:Name="zoomPanControl" Background="LightGray"
This throws a compile error. Does not exist in name space "http://sharpvectors.codeplex.com/runtime/"
This throws a compile error <local:ScaleToPercentConverter x:Key="scaleToPercentConverter"/> ... name does not exist in name space
5.<svg:SvgDrawingCanvas x:Name="svgViewer" Background="White"/> throws a compile error, does exist in name space "http://sharpvectors.codeplex.com/runtime/"
_fileReader = new FileSvgReader() Throws a compile error. Does not contain a constructor that contains 0 arguments.
above form SharpvectorSquiggle & WptTestSvgSample
What i was looking for was a renderer that had zoom & select facilities. I was able to change colour of selected objects and have the object's id (path) returned. I found the GDI only returned the object ID, I couldn't zoom/pan and couldn't change colour of any object selected.
Can the wpf version, when working, do this?
Coordinator
Apr 23, 2013 at 4:53 PM
Hello Ernest,
The WPF version is working and should provide you with the features you are looking for.

The http://sharpvectors.codeplex.com/runtime/ maps to SharpVectors.Runtime namespace
or SharpVectors.Runtime.dll assembly, and it seems that is missing in your references.
[assembly: XmlnsPrefix("http://sharpvectors.codeplex.com/runtime/", "svg")]
[assembly: XmlnsDefinition("http://sharpvectors.codeplex.com/runtime/", "SharpVectors.Runtime")]
SharpvectorSquiggle is a work in progress, meant to provide complete applications for working
with SVG/WPF. Currently, not much is done on this application.

WptTestSvgSample is a sample application providing viewing features and based on the SharpVectors
libraries.

Best regards,
Paul.
Apr 24, 2013 at 2:18 AM
Edited Apr 24, 2013 at 7:55 AM
Hi Paul Don't know what i was going wrong yesterday, but in the cool light of a new day I started again, and all is working. I think that as the reference locations to the dlls were not correct I removed the dlls from the referenced then readded. I guess that I must have missed out the all important Runtime.dll. Any hints on how to pick up an object (path) as in the GID sample? & how to change the object's colour. Just need pointing in the right direction. Thanks Ernest

SelormeyPaul wrote: From: SelormeyPaul Hello Ernest, The WPF version is working and should provide you with the features you are looking for. The http://sharpvectors.codeplex.com/runtime/ maps to SharpVectors.Runtime namespace or SharpVectors.Runtime.dll assembly, and it seems that is missing in your references. [assembly: XmlnsPrefix("http://sharpvectors.codeplex.com/runtime/", "svg")] [assembly: XmlnsDefinition("http://sharpvectors.codeplex.com/runtime/", "SharpVectors.Runtime")] SharpvectorSquiggle is a work in progress, meant to provide complete applications for working with SVG/WPF. Currently, not much is done on this application. WptTestSvgSample is a sample application providing viewing features and based on the SharpVectors libraries. Best regards, Paul.