How to apply different materials in a multi-body part?

Hello,

I'm looking for a way to apply different materials to bodies in a single part, i have seen this: . Now the problem is that when I right click the different parts it wont show "material", as can be seen in the attachment...?  Below is an example of how it should be:

SolidworksParts And Features