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. Image for the cookie policy date

Hiding specific shape.

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.


1 Reply

RT Ramya Thirugnanam Syncfusion Team 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.

Regards,
Ramya



Loader.
Live Chat Icon For mobile
Up arrow icon