Xceed.Wpf.Toolkit.DropDownButton.RaiseCommand C# (CSharp) Method

RaiseCommand() private method

Raises the command's Execute event.
private RaiseCommand ( ) : void
return void
    private void RaiseCommand()
    {
      if( Command != null )
      {
        RoutedCommand routedCommand = Command as RoutedCommand;

        if( routedCommand == null )
          ( ( ICommand )Command ).Execute( CommandParameter );
        else
          routedCommand.Execute( CommandParameter, CommandTarget );
      }
    }