If you use the SPRibbon.TrimById() method on a specific button, it hides the button from the UI, which is okay. However in my case I think it would be nicer to simply disable the button and leave it in place.
I've seen a lot of articles using javascript with custom ribbon actions and triggering the script in their declarative markup for the custom button, but I'm trying to do this on a few OOTB buttons.
Is there any way to achieve this via C# using the SPRibbon class?
I want exactly what this guy on MSDN was asking for to no avail.