Hello Kun,
Thank you for writing.
The
AutoSize property is inherited and setting it to false would break the layout. About the issue with the changed size of the gallery element, I am only able to observe it if the
MinSize property of the element is set. The
MinSize property is also used internally by the GalleryElement and it is set to an empty size when the popup closes. This forces an update in the layout and as seen in your screenshot the size of the element is decreased to fit the two gallery items. In case you are having only the two items and you want the element to have a size only to fit them, do not set the MinSize property. If you want the element to have some extra space, you will need to asynchronously set the property every time the popup closes:
Regarding the selected state, indeed some themes are missing it. I have logged a feedback item on your behalf, here:
RadRibbonBar - the Windows 8 theme is missing the IsSelected state set on the RadGalleryItem. I have also updated your
Telerik points. A possible workaround is to change the theme in the
VSB tool. In order to have the IsSelected state applied it is also necessary to set the
ItemSelection property of the gallery element to
true:
I am also attaching my test project including a custom theme with the applied missing state. I hope this will help.
Regards,
Hristo
Progress Telerik
Get
quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.
Learn More.