Assigning Resource strings to DisplayName and GroupName of LinkGroup and DisplayName of Link?

Mar 8, 2013 at 2:46 AM
Hi,

How to assign Resource strings to DisplayName and GroupName of LinkGroup and DisplayName of Link? Like we set Content of Button as

Content="{Binding Path=ApplicationStrings.New, Source={StaticResource ResourceWrapper}}"

Thanks & Regards,
Chakravarti.B.
Coordinator
Mar 8, 2013 at 11:14 AM
I would suggest not to define those groups and links in XAML, but define the LinkGroupCollection in a viewmodel and bind it to ModernWindow.MenuLinkGroups.
May 10, 2013 at 4:47 PM
Edited May 10, 2013 at 4:47 PM
Can you give an example on how you would bind to a MenuLinkGroups?

I created the LinkGroupCollection in my viewmodel but i am not sure what i am suppose to bind too.

Thanks,
Rico
May 10, 2013 at 6:18 PM
I figured it out.
<mui:ModernWindow x:Class="RTI.ShellView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mui="http://firstfloorsoftware.com/ModernUI"
        Title="Pulse" 
        Icon="Images/logo_small.ico"
        ContentLoader="{StaticResource CaliburnContentLoader}"
        ContentSource="/Views/HomeView.xaml"
        MenuLinkGroups="{Binding Path=MenuLinks, UpdateSourceTrigger=PropertyChanged}">