Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
FilterSelectionControl replacement
posted

Hello,

I need to be able to completely replace the control the user gets when clicking on the funnel icon on the column header. I was able to do this by creating my own style targeting the FilterSelectionControl and creating in there a new controltemplate. I was also able to associate the view contained in my ControlTemplate with my viewmodel and I am able to perform many filtering and other operations using this new FilterSelectionControl. My problem is that I cannot find a way to have this control look different depending on which column header the user clicks. What I am looking for is a simple sample or xaml snippet that display a custom FilterSelectionControl containing, say, a texblock with the text of the header of the column clicked, or that at least selectively hides/shows controls in the FilterSelectionControl. Could you provide something like that?

Thank you.