Hi, I'm using some click events change the visibility state of an OutlookBarGroup. Visibility.collapsed works great but even though Visibility.visible changes the state to visible it does not show the group, it appears that I have to re-load the OutlookBar.
I can see that this works in your group overflow add/remove and have looked over your code but I code in VB and am not piecing this together.
Thanks,
Lisa.
Hi Lisa,There is a ToggleGroupVisibility command that you can use to change the visibility of a group.<StackPanel HorizontalAlignment="Right" VerticalAlignment="Center" DataContext="{Binding ElementName=xamWebOutlookBar1}"> <Button Content="Show/Hide" DataContext="{Binding ElementName=xamWebOutlookBar1}"> <ig:Commanding.Command> <igOB:XamWebOutlookBarCommandSource EventName="Click" CommandType="ToggleGroupVisibility"> <igOB:XamWebOutlookBarCommandSource.ParameterBinding> <Binding Path="Groups[0]"/> </igOB:XamWebOutlookBarCommandSource.ParameterBinding> </igOB:XamWebOutlookBarCommandSource> </ig:Commanding.Command> </Button></StackPanel>Regards,Marin
Hi again Marin
I figured out that ig: is referencing the Infragistics.Silverlight assembly and I was able to apply and test this but it's not going to work for my scenario because I need to control this from radio buttons outside the outlookbar, so can you give me a way to have the outlookbar apply the visibility state of the group without having to refresh the page? Again it works instantly for collapsing a group but not for making one visible again.
Hi Lisa,I cannot reproduce this issue (I'm using the IG 10.1 and Silverlight 4).I've tried to change the group visibility this and it works for me.You don't need to refresh the page, try with this code:OutlookBarGroup gr = xamWebOutlookBar1.Groups[1];xamWebOutlookBar1.Groups.RemoveAt(1);xamWebOutlookBar1.Groups.Insert(1, gr);It should refresh the UI.Regards,Marin
Thanks Marin,
This worked perfectly.
Lisa