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.
Unfortunately, activation email could not send to your email. Please try again.

Hiding specific shape.

Thread ID:

Created:

Updated:

Platform:

Replies:

100303 Jul 24,2011 08:42 AM Jul 27,2011 11:49 PM WPF 1
loading
Tags: Diagram
Wojciech
Asked On July 24, 2011 08:42 AM

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 27, 2011 11:49 PM

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



CONFIRMATION

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.

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.

;