I am trying to use DropDownButton from a Fluent control in a WPF application using Caliburn.Micro.
So far so good. I see a list of my unicorns as GalleryItems in DropDownButton. The only problem is that I could not get "ShowUnicorn ()" to work. When I click on an item from the DropDownButton list, it does nothing. Am I doing something wrong?
This is the code I'm using:
<Fluent:DropDownButton Header="Farm" LargeIcon="..\..\Resources\unicorn48.png"> <Fluent:Gallery ItemsSource="{Binding AllUnicorns}"> <Fluent:Gallery.ItemTemplate> <DataTemplate> <Fluent:GalleryItem Content="{Binding UnicornFoobar}" cal:Message.Attach="[Event Click] = [Action ShowUnicorn()]" /> </DataTemplate> </Fluent:Gallery.ItemTemplate> </Fluent:Gallery>
Thanks in advance.
source share