I am trying to dynamically generate the OutlookBarGroups by binding the GroupsSource to a ObservableCollection<IModule> (Composite Application Library). I need to create a bar group per module. A Module has a name and images which I am trying to use as the group's name and images. I also need to generat the bar goupr's content dynamically based on the modules presentation view. Nothing seems to work, I was trying to do templating on the OutlookBar.Template, it didn't work either.
blank_page
hi,
if you are binding to an observable collection<IModule>, to which Properties are you binding? IModule does not have any Properties. How does your Template look like? Are you binding by setting the dataContext of the outlookBar to whatever holds your ObservableCollection?
More information helps to pin down the problem. I did something very similar (with CAL and OutlookBar) and it works (even if i had problems but that where my fault not infragistics').
kidrocker
hi kidrocker,
would you share your solution?
Header works for me, but I have problems with the content. Maybe my template or something is wrong...
<igOutlookBar:XamOutlookBar Grid.Row="1" Grid.Column="0" Theme="IGTheme" Width="200" GroupsSource="{Binding Items}" AllowMinimized="True"><igOutlookBar:XamOutlookBar.Resources><Style TargetType="{x:Type igOutlookBar:OutlookBarGroup}"><Setter Property="Header" Value="{Binding DisplayName}"/><Setter Property="Content" Value="{Binding}"/><Setter Property="ContentTemplate"><Setter.Value><DataTemplate><ContentControl cal:View.Model="{Binding Menu}" /></DataTemplate></Setter.Value></Setter> </Style> </igOutlookBar:XamOutlookBar.Resources> </igOutlookBar:XamOutlookBar>
This isn't working correctly when navigation is minimized.
I am sorry, this is 3 years old and we changed to a competitors product, so i can't realy help you with that. Did you search your way through the visual tree with snoop or something like that? That helped me a lot when investigating exotic problems because of unexpected implementations of controls (especially with headered itemscontrols). Besides that i don't know how to help you since i don't have that library handy to test.
Hope you find your problem soon!
Regards, kidrocker