This project is read-only.

WPF version of nRoute

Mar 6, 2010 at 9:51 AM

I’ve recompiled nRoure to use it in wpf application, but apparently I did something wrong. I managed to initialize framework and get it to bind my ViewModel to view. Next I wanted to execute a command. I’ve succeeded this using SL so I tried to do it analogously. I’ve added BridgeViewModelBehavior and an ExecuteCommandAction on Button located on root level of view. While control is initializing I receive an excepton – constructor of AttachedBinding throws on

var _defValue = bindingProperty.GetMetadata(bindingType).DefaultValue;

where bindingProperty is Command and bindingType is ICommand, exception is “ArgumentException: 'ICommand' type does not have a matching DependencyObjectType.“

I’ve no idea what that exception means, so I seek help with this issue.

<object id="tts_object" width="18" height="18" type="application/x-shockwave-flash" data=""> <param name="movie" value="" /> <param name="flashvars" value="sound_name=" /> <param name="wmode" value="transparent" /> <param name="allowScriptAccess" value="always" /> </object>
Mar 6, 2010 at 12:01 PM
Edited Mar 6, 2010 at 1:47 PM

@Palpatine, well actually you don't need to use the Binding post-fixed properties in WPF, because it natively offers binding to dependency properties and this will also be the case in Silverlight 4. So in your port you should be able to remove all the Binding post-fixed properties as they are not needed, and the code that supports this extended binding infrastructure is also not needed (which is where the error occurred). 

Also note that there is another port of nRotue in WPF done by Carlos, for Chronos - you can find a DLL for nRoute and a nice MDI-framework build on top of it at 

And if your are interested for the the next release of nRoute, currently I am collaborating with Carlos to get a proper WPF port in place, you are most welcome to join us.


Mar 8, 2010 at 7:07 AM

Thanks for that link and invite, but my knowledge on wpf is quite limited and I don't know if I can help (I can certainly try).

Mar 8, 2010 at 5:17 PM

I wanted to chime in that I'd love to have a WPF port of nRoute available!

Mar 9, 2010 at 9:45 PM
Edited Mar 12, 2010 at 9:47 PM

Hi both @palpatine and @sbussinger, well we have a liftoff on the WPF version of nRoute, and for good-measure this is instep with the latest/to-be-released version of nRoute Silverlight. And though I've barely had time to even use it, though Carlos is already rocking with it in his framework. And equally so, you can grab hold a preview dll off from the latest Chrono's check-in but beware this is just a out of oven preview. 

Secondly, @palpatine if you wanna help, for now I would really appreciate validation on the main uses-cases, and that just means like putting to use some of the features like navigation, DI, controller actions etc.. If you mail me at rishi - at_symbol - I can lay out some of the use-cases in a bit more depth.