Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
Commands in Gallery
posted

Hello,

my problem is that the custom command I bound to the MenuTool surrounding a GalleryTool isn't executed. The CommandBindings are set correctly, because the same thing with an MenuTool containing Buttons works quite fine.

galleryMenu.Command = ChangeSkinCommand;
galleryMenu.ShouldDisplayGalleryPreview = true;
galleryMenu.ButtonType = MenuToolButtonType.Segmented;

Then I bound to the selectedItem ... to retrieve the correct command parameter:

Binding selectionBinding = new Binding("SelectedItem.Key");
selectionBinding.Source = gallery;
galleryMenu.SetBinding(MenuTool.CommandParameterProperty, selectionBinding);

This all works fine. The menu has the correct value as command parameter, but still it's not executed. What did I wrong?

Stef

Parents Reply Children
No Data