
I suggest making the method BarGalleryItemTemplateSelector.PrefersMenuItemAppearance public or protected so it can be reused from custom Gallery item template selectors
Bjørnar Sundsbø
I suggest making the method BarGalleryItemTemplateSelector.PrefersMenuItemAppearance public or protected so it can be reused from custom Gallery item template selectors
Hello,
The intention is for you to set BarMenuGallery.UseMenuItemAppearance to true when your gallery should use menu item appearance. Or specific gallery item view models can set IBarGalleryItemViewModel.LayoutBehavior == BarGalleryItemLayoutBehavior.MenuItem if only specific items should have menu item appearance.
Is there some scenario you have where either of those options won't work?
Sorry. I didn't see email notification.
I have a custom DataTemplate selector class deriving from BarGalleryItemTemplateSelector, and want to extend similar gallery vs menuitem behavior for my own gallery items. I duplicated the code from BarGalleryItemTemplateSelector.PrefersMenuItemAppearace, but if they were public/protected, I could reuse those from my custom selector.
[Modified 11 months ago]
Hello,
Thanks for the explanation. We will make the BarGalleryItemTemplateSelector.PrefersMenuItemAppearance method protected virtual for the next build.
Great. Thanks. I would have created a PR, but pressure is high at the moment.
Please log in to a validated account to post comments.