
Hi,
I am trying to show a popup gallery with images.
Your example shows it with bitmapimages, but i must use resources which contains png content.
With this code my images are not shown. What am i doing wrong here?
I am trying to show a popup gallery with images.
Your example shows it with bitmapimages, but i must use resources which contains png content.
With this code my images are not shown. What am i doing wrong here?
<ribbon:PopupGallery Name="PageTransitionGallery" InitialColumnCount="5" >
<ribbon:PopupGallery.CategorizedItemsSource>
<x:Array Type="{x:Type Image}">
<Image ribbon:PopupGallery.Category="No Transition" Source="{x:Static res:Images.block_blue_32x32}"></Image>
<Image ribbon:PopupGallery.Category="Faders" Source="{x:Static res:Images.block_blue_32x32}"></Image>
<Image ribbon:PopupGallery.Category="Wipers" Source="{x:Static res:Images.block_blue_32x32}"></Image>
</x:Array>
</ribbon:PopupGallery.CategorizedItemsSource>
<ribbon:PopupGallery.ItemTemplate>
<DataTemplate>
<Border Margin="2" BorderBrush="#808080" BorderThickness="1" Width="40" Height="40" SnapsToDevicePixels="True">
<Image Source="{Binding Path=Source}" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="True" />
</Border>
</DataTemplate>
</ribbon:PopupGallery.ItemTemplate>
</ribbon:PopupGallery>