How to hyperlink call comand with commandparameter in xaml devexpress?

685 Views Asked by At

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!!!

0

There are 0 best solutions below