Welcome to MSDN Blogs Sign in | Join | Help

Creating a Silverlight Application with MindManager

As I mentioned in an earlier post, I have been playing around with Silverlight and trying to see how it could work with Mindjet MindManager maps.  Because both MindManager and Silverlight are based in XML, it is fairly straightforward to transform the MindManager XML to Silverlight XML (called XAML) using XSLT.  Since then, I have been working on adding some additional functionality to my XSLT transform to add images, zooming, panning, and video playback.

Yesterday at Mix Microsoft announced a new Sliverlight Streaming Service for Windows Live where you can upload Silverlight Application that include the Silverlight XAML, javascript, images, and video.  What's cool about this is that you can package all of the assets needed for a silverlight application in a zip archive and upload the application to the service.  When I heard about that, I created a free account on the service and tried out by uploading one of my transformed maps.  It worked! 

As an aside, I have real appreaciation for the software engineering talent of people like Andrew, Amy, and Peter at Mindjet who I worked with when I was managing the devleopment team there.  As you can see from what I've done in a few weeks, it's a far cry from what MindManager is and what it can do; the topic layout algorithms alone can get very tricky. 

Because the Windows Live Silverlight Streaming Service has a REST API, I can programatically create and upload the applications as well!  So to test that out, I created a simple Windows Forms application that I (or anyone else) could use to generate a Silverlight Application from a MindManager map and upload it to sliverlight.live.com.  Once it's uploaded, you can insert a little HTML into any web page (see below) and the application will work on that page. 

The code to upload a Silverlight Application is actually very simple:

public void Upload(string zipFilename, string filesetName)

{

    string url = string.Format("https://silverlight.services.live.com/{0}/{1}", m_accountId, filesetName);

    System.Net.WebRequest request = System.Net.WebRequest.Create(url);

    request.Credentials = new NetworkCredential(m_accountId, m_key);

    request.ContentType = "application/zip";

    request.Method = "PUT";

    using (System.IO.FileStream inputStream = new System.IO.FileStream(zipFilename, FileMode.Open))

    {

        using (System.IO.Stream requestStream = request.GetRequestStream())

        {

            BinaryCopier.CopyStream(inputStream, requestStream);

            requestStream.Close();

        }

        request.GetResponse();

    }

}

 

Now that I have a Silverlight applications uploaded, I can start integrating it with other Silverlight applications or websites like this: http://xmldocs.net/Map.aspx.

I have attached the code for the uploader application (with the Javascript and XSLT) so you can get started with trying this cool synergy out.

Here's what you can do now:

  • Play around with the map at the bottom of this post or at http://xmldocs.net/Map.aspx: zoom with the slider on the left, pan by dragging a topic, expand the topics, click on attachments and hyperlinks (you'll find an example of video playback in an attachment and also in a hyperlink). 
  • Create an account on http://silverlight.live.com to get 4GB of free Silverlight application hosting.
  • Download the uploader application and tinker with the XSL transform and Javascript.
  • Tell me what you think in the comments of this blog.
  • Take a look at how two Silverlight applications can be combined on one page at http://xmldocs.net/Map.aspx.

 

Published Tuesday, May 01, 2007 10:41 AM by Michael S. Scherotter
Attachment(s): SilverlightMap.zip

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Creating a Silverlight Application with MindManager

Lack of a web viewer is a huge missing piece in MindManager. If it can be elegantly solved this way that is fantastic!

Tuesday, May 01, 2007 5:14 PM by Brett

# re: Creating a Silverlight Application with MindManager

Really nice idea Michael, though MindManager does have a web viewer for IE now (Brett see  - http://www.mindjet.com/eu/products/mindmanager_viewers/publishers.php?s=3) it is IE only, and not as cool as silverlight!

Is the app or source available to download - I would love to have a play with it?

Cheers

Ian

Saturday, May 05, 2007 4:34 AM by Ian Blackburn

# re: Creating a Silverlight Application with MindManager

Oops just spotted the attachment!  Scratch that last comment!

Saturday, May 05, 2007 4:46 AM by Ian Blackburn

# Samples from ScottGu's Silverlight Post

I’m sure that most folks interested in Silverlight have seen Scott’s in-depth post from Monday . If you

Friday, May 11, 2007 10:21 AM by Mike Harsh's Blog

# Updated Silverlight Applications to Release Candidate

For those of you have heard, a Release Candidate for Silverlight 1.0 was released yesterday. I had written

Saturday, July 28, 2007 1:45 PM by Synergist

# Updated Silverlight Applications to Release Candidate

For those of you have heard, a Release Candidate for Silverlight 1.0 was released yesterday. I had written

Saturday, July 28, 2007 2:18 PM by Noticias externas

# Talking about Transforming MindManager to Silverlight RIA at Tulsa TechFest

One of the first demonstrations of Silverlight that I built was a tool that transforms a MindManager

Sunday, October 14, 2007 1:18 PM by Synergist

# re: Creating a Silverlight Application with MindManager

I can't find the attachment... where is it?

Friday, April 04, 2008 10:22 AM by rene

# re: Creating a Silverlight Application with MindManager

ops... I found it  :)   but when I try to open in VS2008 it asks for password of SilverlightMap.pfx...

Friday, April 04, 2008 10:36 AM by rene

# re: Creating a Silverlight Application with MindManager

Uncheck the option to sign the assembly and you should be fine.

Michael

Friday, April 04, 2008 2:34 PM by Michael S. Scherotter

# o mapa do que eu faço... direto do MindManager pra Silverlight | usina

  eu sou absolutamente apaixonado pelo MindManager , um software bárbaro para se criar mapas

Wednesday, April 30, 2008 5:20 PM by o UAU nosso de cada dia

# re: Creating a Silverlight Application with MindManager

I ran the application with VS 2008 and 'Generate Application' for a mmap file.  The testApplication.zip was created, but when I 'Upload' it to silverlight, I get a 'Root element missing' on line 94 in Form1.cs.

I tried upload it manually to silverlight website and get the same error when viewing it.  The error is in map.xaml - line 5, position 41

Tuesday, November 04, 2008 11:32 PM by Trinity

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker