NewsAggregator Link Extension

Topics: Prism v2 - Silverlight 2
Mar 14, 2009 at 10:29 AM
Edited Mar 14, 2009 at 10:32 AM
After watching the Prism V2 Digg/Twitter screencasts I'm trying to extend the Digg view to link to the Digg Story via the DiggStory property Hreflink.

I've basically duplicated the way this works with the Search button in SearchView and the command is triggered as far as CommandBehaviourBase (with CommandParameter set correctly) however this.Command is unexpectedly null.

Any ideas what I am missing?  

XAML added to DiggSearchResultsView.xaml

<HyperlinkButton Content="{Binding Path=HrefLink}"
Commands:Click.Command="{Binding Path=LinkCommand}"
Commands:Click.CommandParameter="{Binding Path=HrefLink}"/>

 

DiggSearchResultsViewModel has an ICommand property LinkCommand which is set in the DiggSearchResultsViewModel ctor to  

this

 

.LinkCommand = new DelegateCommand<string>(OnLink);