I have hyperlink like bellow, and i try call command by click to hyperlink!
<Hyperlink Command="{Binding ResidentChangeCommand}"
CommandParameter="ChangeMaritalStatus">
<TextBlock Text="history" />
</Hyperlink>
private ICommand _residentChangeCommand;
public ICommand ResidentChangeCommand {
get {
return _residentChangeCommand ?? (_residentChangeCommand = new DelegateCommand<object>(OnResidentChange));
}
}
public void OnResidentChange(object obj) {
WindowResidentCard window = new WindowResidentCard(obj.ToString());
window.ShowDialog();
}
but nothing happens!!! What the problem??? Any ideas! thank's!!!