Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Show the controls beneath respective accordion item based on input to xaml.

Posted on 2011-02-23
11
Medium Priority
?
456 Views
Last Modified: 2013-11-12
Hi Experts,
I have a menu control whic has name of each accodian items. In my xaml page, i am showing menucontrol at the top and accordion control tool kit below the menu. When i click the items in the menu, i need to show respective accordionitem in xaml.Is there any way to do that?

Kind regards,
Suresh
0
Comment
Question by:poojasureshkumar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 34963486
0
 

Author Comment

by:poojasureshkumar
ID: 34964279
Hi Ged325,
I have already working  accordion control . What i need here is when i click 1 , new tab "1" has to be created. When i click 2, new tab "2" is created next to 2.
So that i can visit tabs 1 and 2 at any time. When i click tab"1" , i could see only  items of 1. when i click tab "2", i must see only items of 2.

Kind regards,
Pooja
0
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 34970986
You can set all the tabs to be collapsed (except for the start) and then on click hide the current tab and set the "clicked tab" (known from the menu click) to visible.
0
Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 34971003
0
 

Author Comment

by:poojasureshkumar
ID: 34980353
Hi Ged325,
Sorry if i had confused you. I am very new to Silverlight. What i need is to create dynamic tabs when user clicks accordion items.Like Yahoo page...

I already has AccordionControl in place on SilverLightUSerControl. Now i need to create respective dynamic tabs when i click the accordion items.

Kind regards,
Pooja
0
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 34997068
Post your code.
0
 

Author Comment

by:poojasureshkumar
ID: 35000495
Hi Ged325,
 <Grid x:Name="gdMain"  Grid.Row="1" Margin="4,0" >
  <ScrollViewer Height="600" HorizontalAlignment="Left" VerticalAlignment="Top" Width="800">
        <toolkit:Accordion  Name="AccMan" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ItemContainerStyle="{StaticResource AccordionContainerStyleLawBot}" Width="900" Height="755" SelectionMode="ZeroOrOne">
                      <toolkit:AccordionItem  Name="AccChild1"  Header="Book 1" AccordionButtonStyle="{StaticResource AccordionButtonStyleLawBot_2}" BorderBrush="#FF00102E" Background="{x:Null}" FontSize="13.333" Margin="0,1,0,0" Selected="AccChild1_Selected" >
<!-- Controls are placed inside the grid-->
                    </toolkit:AccordionItem>

                    <toolkit:AccordionItem  Name="AccChild2"  Header="Book 1" AccordionButtonStyle="{StaticResource AccordionButtonStyleLawBot_2}" BorderBrush="#FF00102E" Background="{x:Null}" FontSize="13.333" Margin="0,1,0,0" Selected="AccChild2_Selected" >
<!-- Controls are placed inside the grid-->
                 </toolkit:AccordionItem>
 </toolkit:Accordion>
 </ScrollViewer>
</Grid>

Question:
When i click AccChild1 and AccChild2 , i am trying to create the respective dynamic tabs.
Reason behind  is when the user is outside of this xaml and working on some other xaml page, if they want to revisit contents in AccChild1  or AccChild2, simply click the tabs (placed above)..

Kind regards,
Pooja
0
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 2000 total points
ID: 35007379
For this I would create the tabs in xaml and set visibility = collapsed.

in your onselected set Visibilty = Visible for the appropriate tab.
0
 

Author Comment

by:poojasureshkumar
ID: 35009248
Hi ged325,
I am already using thirdparty menucontrol plugin in the xaml . How to create a tabs in xaml here?

Kind regards,
Pooja
0
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 35018128
What third party control?  
0
 

Author Comment

by:poojasureshkumar
ID: 35099896
Hi Ged325,
Sorry for the delay . I don't want to use any more third party controls. Earlier i have used menucontrol.dll developed by thrird party and it looks good and it fits my design pattern. But the problem here is i cannot do any alteration or changes to the menu strip. So we decided to create  silverlight control using vb.net. What i am requesting here is i need some link to create silverlight menu control...Sorry i am very new to silverlight.

Kind regards,
pooja sureshkumar

 
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question