Hi,
I have a usercontrol that contains a Actipro Splitbutton which I want to embed into my actipro ribbonbar.
Copying the code directly into the ribbonbar works fine.
However, when I add the usercontrol to the ribbonbar, it shows the openstate, and not the splitbutton. Do I have to do some extra things to get a custom usercontrol into the ribbonbar which behaves the same as when i copy the code directly into the ribbonbar?
I have a usercontrol that contains a Actipro Splitbutton which I want to embed into my actipro ribbonbar.
Copying the code directly into the ribbonbar works fine.
However, when I add the usercontrol to the ribbonbar, it shows the openstate, and not the splitbutton. Do I have to do some extra things to get a custom usercontrol into the ribbonbar which behaves the same as when i copy the code directly into the ribbonbar?
<UserControl x:Class="NdsTransitionControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Focusable="False">
<Grid HorizontalAlignment="Left" VerticalAlignment="Top" >
<ribbon:SplitButton Label="Transition" HorizontalAlignment="Left" VerticalAlignment="Top" >
<ribbon:PopupGallery Name="PageTransitionGallery" InitialColumnCount="7" >
<ribbon:PopupGallery.CategorizedItemsSource>
<x:Array Type="{x:Type Image}">
<Image ribbon:PopupGallery.Category="No Transition" Source="{x:Static SomeResourceLink:somepicture}"></Image>
<Image ribbon:PopupGallery.Category="Faders" ToolTip="Fade In" Source="{x:Static SomeResourceLink:somepicture}"></Image>
<Image ribbon:PopupGallery.Category="Faders" ToolTip="Dissolve" Source="{x:Static SomeResourceLink:somepicture}"></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>
</ribbon:SplitButton>
</Grid>
</UserControl>