we are using XAM outlook bar
<ig:XamOutlookBar Name="NavBar" SelectedGroupChanged="NavBar_SelectedGroupChanged">
<ig:OutlookBarGroup Header="Geographical Setup" Name="AddressSetup" Key="AddressSetup"> <ContentControl> <StackPanel> <Button Content="Country" Name="Country" Click="Country_Click" /> <Button Content="State" Name="State" Click="State_Click" /> </StackPanel> </ContentControl> </ig:OutlookBarGroup>
Now we are able to find XAM outlook bar groups. But we are not able to find content controls with in a group. Suppose Geographical Group have Country and State Button , but using a group name not able to find this content controlls. Please suggest us for that.
Thank you for your post. I have been looking into your issue and I managed to access the content control like e.g.:
Button btn1 = ((this.xamOutlookBar1.Groups["AddressSetup"].Content as ContentControl).Content as StackPanel).Children as Button;
Let me know, if you need any further assistance on this matter.
Thanks for your reply. But its just you cast as button. we don't want like that.
Our requirement is like: in other page I am fetching XAMOutlook bar Groups and Every bar group have sub groups like(country,city,county).
I am able to find group Names like AddressGroup and etc.
But with in Address group have Sub Group(Content control). We are not able to find these Content Control count or Content Control Name using its Group.
Its does not matter its Button or not, Point of that, with in Every group(not having any content control clues).
Thank you for your feedback. I have been looking concerns and I am not sure that you can access the content of the groups without using casting. My suggest is to use my approach.
I am just checking if you require any further assistance on the matter.