"Convert" menu with itemsource from static resource in a ribbon bar menù
Hi All
I'm quite new of Syncfusion and I would to "convert" a WPF menù like this
<Menu DockPanel.Dock="Top" Name="MainMenu" FontSize="12" FontWeight="SemiBold">
<Menu.ItemsSource>
<CompositeCollection>
<CollectionContainer Collection="{StaticResource MenuFile}" />
<CollectionContainer Collection="{StaticResource MenuCartella}" />
<CollectionContainer Collection="{StaticResource MenuSottoCartella}" />
<CollectionContainer Collection="{StaticResource MenuDocumento}" />
<CollectionContainer Collection="{StaticResource MenuFornitori}" />
<CollectionContainer Collection="{StaticResource MenuImpostazioni}" />
<CollectionContainer Collection="{StaticResource MenuAiuto}" />
</CompositeCollection>
</Menu.ItemsSource>
</Menu>
<x:Array Type="{x:Type MenuItem}" x:Key="MenuFile">
<MenuItem Header="{DynamicResource Menu_File}">
<MenuItem.ItemsSource>
<CompositeCollection>
<MenuItem Header="{DynamicResource Menu_File_Apri}" ToolTip="{DynamicResource Menu_File_Apri_ToolTip}" Command="{Binding Command_ApriFileBuyer}" />
<Separator />
<MenuItem Header="{DynamicResource Menu_File_Importa}" ToolTip="{DynamicResource Menu_File_Importa_ToolTip}" Command="{Binding Command_ImportaCartella}"/>
<Separator />
<MenuItem Header="{DynamicResource Menu_File_Backup}" ToolTip="{DynamicResource Menu_File_Backup_ToolTip}" Command="{Binding Command_BackupFile}"/>
<Separator />
<MenuItem Header="{DynamicResource Menu_File_Uscita}" ToolTip="{DynamicResource Menu_File_Uscita_ToolTip}" Command="{Binding Command_Uscita}" InputGestureText="Alt+F4">
<MenuItem.Icon>
<Image Source="Images/exit.png" Height="40" Width="40"/>
</MenuItem.Icon>
</MenuItem>
</CompositeCollection>
</MenuItem.ItemsSource>
</MenuItem>
</x:Array>
to a Ribbon Bar in which all Collection became RibbonBar (each item in the collection a RibbonButton). Obviously I could change the array definition!
Anyone could give me some tips to achieve this quickly ?
Thank you
SIGN IN To post a reply.
3 Replies
MS
Mariappan S
Syncfusion Team
August 24, 2016 07:16 AM UTC
Hi Domenico,
Thank you for contacting Syncfusion Support.
We have prepared a Ribbon sample which tries to meet your requirement. In this sample we have populated RibbonBar with RibbonButton like your code.
Please download the sample from the below link
Sample link: RibbonSample
If your requirement different from this sample, please provide more information about your requirement. It would be helpful to resolve your problem at the earliest.
Regards,
Mariappan S.
DB
Domenico Barile
August 25, 2016 02:16 PM UTC
Thank you so much Mariappan
Your sample was very useful!
Regards,
Domenico
MS
Mariappan S
Syncfusion Team
August 26, 2016 04:01 AM UTC
Hi Domenico,
Thanks for your update
Please let us know if you need further assistance.
Regards,
Mariappan S
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
DB Domenico Barile
- Aug 23, 2016 01:44 PM UTC
- Aug 26, 2016 04:01 AM UTC