We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Controlling the arrow sign next to the GroupBarItem

Thread ID:





125224 Aug 1,2016 08:39 AM UTC Aug 3,2016 04:38 AM UTC WPF 3
Tags: GroupBar
Asked On August 1, 2016 08:39 AM UTC


I'm trying to expand a specific GroupBarItem and collapse all the other GroupBarItem's in the process, for that I'm using a click event that works great when I'm pressing the GroupBarItem, but not when I press the arrow sign next to the GroupBarItem (then the click event isn't firing).
Is there a way to disable to arrow sign or use another event besides the click event so that I could capture both the GroupBarItem click and arrow sign click?



Attachment: 1_f0225ad0.rar

Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 2, 2016 12:37 PM UTC

Hi Dov,

In our GroupBar control, the click event of the GroupBarItem will fire only on clicking the GroupBarItem and not on arrow in it. To capture the click event of GroupBarItem on clicking the Item and on arrow sign, the IsHitVisible property need to be set as False for the arrow button, which can be fetched using FindName method. Please refer the code example for the same as below:  
 Code snippet:  
FrameworkElement btn = (sender as GroupBarItem).Template.FindName("Expander", sender as GroupBarItem) as FrameworkElement; 
                if(btn != null) 
                    btn.Visibility = Visibility.Collapsed; 
Vijayalakshmi V.R. 

Replied On August 2, 2016 01:06 PM UTC

That's working great.



Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 3, 2016 04:38 AM UTC

Hi Dov,

Thank you for your update.

Please let us know if you need any further assistance on this.

Vijayalakshmi V.R.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon