Quantcast
Channel: Ribbon for WPF - Recent Posts
Viewing all articles
Browse latest Browse all 1458

Cannot serialize/deserialize ApplicationMenu items on the QAT

$
0
0

Hi,

I have an application that serializes the QAT during shutdown and tries to deserialize it during startup. But it does not seem to work for ApplicationMenu items where the items are built using the ItemsSource property.

<ribbon:Ribbon x:Name="ribbon" DockPanel.Dock="Top"><ribbon:Ribbon.ApplicationMenu><ribbon:ApplicationMenu ItemsSource="{Binding Buttons, ElementName=window}"><ribbon:ApplicationMenu.Resources><DataTemplate DataType="{x:Type sys:String}"><ribbon:Button ImageSourceSmall="Resources\x.png" Label="{Binding}" /></DataTemplate></ribbon:ApplicationMenu.Resources></ribbon:ApplicationMenu></ribbon:Ribbon.ApplicationMenu></ribbon:Ribbon>

Even if I pin multiple ApplicationMenu items to the QAT, all I get is an empy RibbonControlPathList from the return value of Ribbon.SerializeQuickAccessToolBarItems().

I can send a sample application if you need it.

 

Regards,

Ilian Pinzon


Viewing all articles
Browse latest Browse all 1458

Trending Articles