C# Disciples

my life in Avalon ….

Jasema – The XAMLPadX plugin for building Path Geometry

[Jasema v2 has been released]

XAMLPadX v3 is out ! I love XAMLPadX, for me it is one of the best tools to have when developing WPF applications. One of the best features of XAMLPadX v3 is that you can build your own plugins… cool !! So basically we can be part of it!

Lately I was creating some simple paths yet it took me ages to build them because I was building them manually by hand. While creating the geometry for these paths I noticed that creating a tool to build these paths would be very easy… All you have to do is record where the mouse pointer is and put it in the Data property of the Path (for more info on how to build path geometry click here). So I decided to build a tool that I can use to build these Paths more efficiently…

jasema.jpg

The tool can be integrated as a XAMLPadX plugin and also run as a standalone application. Jasema is very simplistic and only caters for straight line paths (it is only v1, I am just testing the idea) yet in the near future I will add more functionality for it in order to support much more complex Paths.

You can generate paths by click on the drawing surface provided in the tool. When a point is created the point is shown as a small dot. If you click on the dot that point will be removed from the path geometry. Another interesting and helpful feature in Jasema is the Layout Grid. The layout grid is a simple grid that is drawn on the background of the drawing surface so that you have more guidance while painting the path that you want. You can also make the grid larger or small as you prefer by using the slider menu that is provided in the tool bar.

Why did I call this tool Jasema?

well “Jas” are the first 3 letters of my daughter’s name – Jasmine
“Ema” is the name of my wife….
concatenate them …. string toolName = “Jas”+”ema”;
There you have it “Jasema”

To install this tool as a XAMLPadX plugin you will need to

First of all install XAMLPadX v3
- Create a folder called “Jasema” under “C:\Program Files\XamlPadX\Addins” (assuming that XAMLPadX v3 is installed in that directory)
- Copy the Jasema.dll and paste it in the folder that you have just created
- Thats’s it ! Now when you open XAMLPadX and click on Plugins >> More Plugins, Jasema will appear in the list and you can select it…

To run Jasema as a standalone application you can do so, by starting up the JasemaApp.exe…

Again I want to point out that this is just the start…. I have loads of ideas on how to improve this tool such as supporting more complex paths etc… I am waiting to see the feedback on this tool because at the end of the day it is just an idea, now it is up to us to expand this idea into a handy tool :)

PLEASE SEND FEEDBACK….

Download Full Source Code
Download DLL and Executable

January 10, 2008 - Posted by marlongrech | .Net 3.5, WPF, WPF Custom Controls, wpf tools | | 16 Comments

16 Comments »

  1. Thanks, this is a very nice start!

    Comment by Gerald | January 11, 2008 | Reply

  2. very very handy.

    Thanks

    Comment by sacha | January 11, 2008 | Reply

  3. COOL! I love it. Thanks

    Comment by Nyi Nyi | January 28, 2008 | Reply

  4. this is nothing compared to what is comming :)
    This week I will release V2 :)

    Comment by marlongrech | January 28, 2008 | Reply

  5. Great tool, but please support other culture settings (Other decimal symbols)

    Comment by Martin | January 28, 2008 | Reply

  6. what do you mean Martin?

    Comment by Marlon Grech | January 28, 2008 | Reply

  7. Hi Marlon, here is an example when I use the program.

    The output is:
    M 89,104,777777777778 150,105,777777777778 118,146,777777777778

    When I switch to English(United states) in “regional and language options” I get the correct output (with dots instead of comma):

    M 89,104.777777777778 150,105.777777777778 118,146.777777777778

    Im using “Danish (Denmark)” as regional settings.

    Comment by Martin | January 29, 2008 | Reply

  8. Thanks for reporting this huge BUG. I will make sure to fix it in the new version…. Thanks again for reporting this :)

    Comment by marlongrech | January 29, 2008 | Reply

  9. Team Jasema has fixed this bug…. It will be available in the new version… Thanks again for reporting it :)

    Comment by marlongrech | January 29, 2008 | Reply

  10. Hi Marlon,

    The download links appear to be broken. I get “file not found” errors.

    Comment by Wes | June 17, 2008 | Reply

  11. download from here
    http://marlongrech.wordpress.com/jasema

    Comment by Marlon Grech | June 17, 2008 | Reply

  12. All the download links are broken.
    http://marlongrech.wordpress.com/jasema
    and the links
    “Download Full Source Code:
    “Download DLL and Executable”

    Please tell me where to download this superb addin.

    Thanks in advance.

    Comment by DAM-I | July 18, 2008 | Reply

  13. Well just found out that the following link is working.
    http://cid-96f8d49aa44c79c1.skydrive.live.com/self.aspx/Public/JasemaSetup.zip

    Thanks

    Comment by DAM-I | July 18, 2008 | Reply

  14. Hi Marlon. I can’t insert early prepared data from Data property. It’s very bad becouse it’s cool if I want not only create but and modify.

    Comment by andre | September 8, 2008 | Reply

  15. what version are you using of Jasema? Make sure you are using the latest one because I did loads of bug fixing
    http://marlongrech.wordpress.com/jasema/

    Comment by Marlon Grech | September 8, 2008 | Reply

  16. First of all, amazing app!
    I saw someone requested an auto-docking feature. So I came up with a quick tool which would take Jasema output as input, and round all numbers to a user specified precision. It can be downloaded using the following link (note you need .NET v3.5 to run this):
    http://thmida.bay.livefilestore.com/y1pzxEvojgu1jcEHtDAGWvyjKtFW7qE9pUqUNey1bXpez2_aLEd11TGfWuM40LnWW2fI-fOrgJdobqymCO5vbdpPt5JfpliyyrF/KshitijWPFToolkit.exe

    Comment by Kshitij Mehta | May 18, 2009 | Reply


Leave a comment