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.
Syncfusion Feedback

PaletteGroupBar.Clear removes Palettes but not Controls

Thread ID:

Created:

Updated:

Platform:

Replies:

32544 Aug 3,2005 01:23 PM UTC Aug 4,2005 02:55 PM UTC Windows Forms 1
loading
Tags: Diagram
Richard Deverson
Asked On August 3, 2005 01:23 PM UTC

Hi, I have a PaletteGroupBar loaded with three symbol palettes. I am calling PaletteGroupBar.Clear() before loading a set of different Symbol Palettes into the Group Bar. The PaletteGroupBar.Controls collection still seems to contain the old palettes even after calling Clear(). However the PaletteGroupBar.PaletteCount property is 0 as expected. Is this the intended behaviour? This can be reproduced in the DiagramBuilder sample. I noticed this because I dynamically create a Symbol by iterating through the PaletteGroupBar.Controls collection, looking for a particular SymbolModel. After clearing the PaletteGroupBar and loading another set of Palettes, two symbols were created "on top of each other". This is because two SymbolModels with the same name were found. The first in the "old" Palette, which remained in the Controls collection, and the second in the "new" Palette, which is of course also in the Controls collection.

Administrator [Syncfusion]
Replied On August 4, 2005 02:55 PM UTC

Hi Richard, You are right about the problem. It looks like calling PaletteGroupBar.Clear() merely hides the PaletteGroupView items contained in the GroupBar, and does not dispose off the controls. I don''t believe this is the design intent, and the PaletteGroupBar should ideally remove and dispose the PaletteGroupView control(s). I have logged a QA report, and we will do our best to fix the issue in a future update of the product. For the time being, please just clear the PaletteGroupBar.Controls collection immediately after you call PaletteGroupBar.Clear(). Thank you for bringing this issue to our attention. Regards, Prakash Surendra Syncfusion Inc.,

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.

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

;