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

Hiding specific shape.

Thread ID:





100303 Jul 24,2011 12:42 PM UTC Jul 28,2011 03:49 AM UTC WPF 1
Tags: Diagram
Asked On July 24, 2011 12:42 PM UTC

Is there any possibility to hide some groups of shapes for example: Electrical Sahpes, but also specific shape in a group for example traingle in Shapes group.

Ramya Thirugnanam [Syncfusion]
Replied On July 28, 2011 03:49 AM UTC

Hi Wojciech,

SymbolPaletteGroup can be hidden using SymbolPaletteFilter features, SymbolPaletteGroup and Filter are index based. A group gets displayed only when any of the specified FilterIndex is selected in the SymbolPaletteFilter.

For more details about SymbolPaletteGroup and Filter, please refer to Online Help Documentation.
Link: http://help.syncfusion.com/ug_92/User%20Interface/WPF/Diagram/index.htm and Navigate to the Concepts and Features->SymbolPalette->Symbol Filters

With regards to hiding the SymbolPaletteItem, we have provided the code snippet to represent this. Please refer to the code snippet.
Code Snippet:

//Hiding the Particular Shape from the SymbolPaletteGroup
(this.diagramControl.SymbolPalette.SymbolGroups[0].Items[3] as SymbolPaletteItem).Visibility=Visibility.Collapsed;

Here, diagramControl is the instance of the DiagramControl.

Please let us know if you have any further queries and we will be happy to help you out.



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