-
Phiiii said 11 months, 3 weeks ago:
Hello Guys, I have a hard time in my menu Accordion.
At the time I click on my menu item created, it opens like a 'tab’ more to be able to show that you have within that item.
I wish that when I clicked that my menu item does not open the 'tab’ that he already wanted to open my document specific, what property I may be using for this to happen?Sincerely.
| # -
Hi Phiiii,
I’m sorry but it’s hard for me to understand your requirement. Could you please explain what you mean by 'my menu item does not open the ‘tab’ that he already wanted to open my document specific’?
Do you want that the Accordion item should not expand when you click on the Item Header?
Thanks
| # -
Phiiii said 11 months, 2 weeks ago:
Okay, suppose I have my Accordion Menu, and whenever I click on that contains some intem in my menu it opens a 'new tab’ shows where my subitems that have clicked within that menu.
I wanted the minute I clicked on something that contains my menu, it did not open this 'new tab’ open already but I put the right to open after clicking, example:
I clicked on the menu where it is called "Sign Up" to expand the menu ives him, he opened my screen "Sign Up" that would be a ChildWindow.
It became more clear?!
| # -
Hello Phiiii,
I’m really sorry but I still can’t completely understand your requirement.
First of all, which control are you using? C1Accordion or C1Menu ? These are two separate controls and there is no control called 'Accordion Menu’.Now, if you are using C1Accordion, do you want to open a ChildWindow when the Header of an AccordionItem is clicked and the Content should not get expanded?
Or
Are you using C1Menu and want to open a ChildWindow when a MenuItem is clicked without expanding the SubMenu?If your requirement is different than the above scenarios, please send across a sample and a screenshot of the desired behavior.
Thanks
| # -
Phiiii said 11 months, 2 weeks ago:
Good morning, what I do in my c1Accordion is just what you said, open a child window without it expand.
If you can help me will be grateful.
Sincerely.
| # -
You can listen to the IsExpandedChanged event of C1AccordionItem(s), set the IsExpanded property to false and show child window or do whatever you wish to do.
public MainPage() { InitializeComponent(); foreach (C1AccordionItem item in c1Accordion1.Items) { item.IsExpandedChanged += new EventHandler<C1.Silverlight.PropertyChangedEventArgs<bool>>(item_IsExpandedChanged); } } void item_IsExpandedChanged(object sender, C1.Silverlight.PropertyChangedEventArgs<bool> e) { ((C1.Silverlight.Extended.C1Expander)(sender)).IsExpanded = false; // show child window here }Regards
Abdias| #
You must be logged in to reply to this topic.

