Posted 16 years ago
by Steve GW
I have defined a RibbonGallery inside a Ribbon Tab in a group
<ribbon:RibbonGallery Name="DrawingsContainer" MinWidth="120" Margin="2" MinHeight="80" ItemsSource="{Binding Source={StaticResource drawingImages }}">
and a PopupGallery inside it
<ribbon:PopupGallery Name="DrawingsQueuePopup" InitialColumnCount="4" IsSelectionHighlightVisible="False"
ItemsSource="{Binding Source={StaticResource drawingImages }}"
/>
I have an action that adds new content to the Galleries ItemsSource. Things seem to work and the static drawingImages fires during a bebug ... so I see the new ItemsSource get updated and I refresh the Items and layouts during the add new image to Gallery
i.e.
ribbonEditor.DrawingsContainer.Items.Refresh();
ribbonEditor.DrawingsQueuePopup.Items.Refresh();
ribbonEditor.DrawingsQueuePopup.UpdateLayout();
ribbonEditor.DrawingsContainer.UpdateLayout();
If Select the Popup from the gallery the new content new there (although the images scales are all wrong) but after the Popup close all my Gallery content is gone. Switch Tabs does not bring the content back.
This is release 5.0
The question is why after the popup close the content disappears? and the scales of the images is all wrong.
Any ideas
<ribbon:RibbonGallery Name="DrawingsContainer" MinWidth="120" Margin="2" MinHeight="80" ItemsSource="{Binding Source={StaticResource drawingImages }}">
and a PopupGallery inside it
<ribbon:PopupGallery Name="DrawingsQueuePopup" InitialColumnCount="4" IsSelectionHighlightVisible="False"
ItemsSource="{Binding Source={StaticResource drawingImages }}"
/>
I have an action that adds new content to the Galleries ItemsSource. Things seem to work and the static drawingImages fires during a bebug ... so I see the new ItemsSource get updated and I refresh the Items and layouts during the add new image to Gallery
i.e.
ribbonEditor.DrawingsContainer.Items.Refresh();
ribbonEditor.DrawingsQueuePopup.Items.Refresh();
ribbonEditor.DrawingsQueuePopup.UpdateLayout();
ribbonEditor.DrawingsContainer.UpdateLayout();
If Select the Popup from the gallery the new content new there (although the images scales are all wrong) but after the Popup close all my Gallery content is gone. Switch Tabs does not bring the content back.
This is release 5.0
The question is why after the popup close the content disappears? and the scales of the images is all wrong.
Any ideas