Disabling items in Gallery or ListBox

Nov 2, 2010 at 2:11 PM
Edited Nov 2, 2010 at 2:30 PM


I'm trying to disable particular items in a gallery or in a listbox, but I haven't been able to do this. I have noticed that the IsEnabled trigger in the GalleryItem only get triggered by disabling the whole gallery. Is there no way to disable particular items within the gallery?

edit: sorry for being a bit ambiguous at first. I am using the sample provided by you, in which you have an InRibbonGallery, containing items defined as XAML rectangles with text. Those are the items that i'm trying to disable. Sorry for being a bit ambiguous, I'm not yet completely familiar with the code.

Thank you!

Andrei Scurei