private void RaiseCommand()
{
if( Command != null )
{
RoutedCommand routedCommand = Command as RoutedCommand;
if( routedCommand == null )
( ( ICommand )Command ).Execute( CommandParameter );
else
routedCommand.Execute( CommandParameter, CommandTarget );
}
}