This question is locked. New answers and comments are not allowed.
<UserControl.Resources> <common:MyCommands x:Key="MyCommands"/> </UserControl.Resources><DataTemplate> <HyperlinkButton Content="{Binding Name}" Command="{Binding ClientDetailCommand, Source={StaticResource MyCommands}}" CommandParameter="{Binding Id}" Style="{StaticResource GridHyperLink}"/></DataTemplate>public class MyCommands { private static RoutedUICommand clientDetailCommand; public static RoutedUICommand ClientDetailCommand { get { if (clientDetailCommand == null) { clientDetailCommand = new RoutedUICommand("ClientDetailCommand", "ClientDetailCommand", typeof(MyCommands)); } return clientDetailCommand; } } }