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.

DockingManager setZIndex for buttons inside

Thread ID:

Created:

Updated:

Platform:

Replies:

89015 Aug 17,2009 12:23 AM Aug 19,2009 03:26 AM WPF 5
loading
Tags: Tools
Christina Robin
Asked On August 17, 2009 12:23 AM

Hello,
I have a question about the Docking manager. I am trying to hide/show buttons inside my DockingManager, which I have placed inside of a DocumentContainer (as seen in the attached picture). To hide the buttons, I have created a rectangle on the canvas and drawn over three buttons. When DocumentContainer is maximized, I would like to show all three buttons (set Z Index of white rectangle to the lowest value). When the DocumentContainer is minimized, I would like to hide all three buttons (set Z Index of white rectangle to highest value). The code I wrote works fine for the DocumentContainer by itself, but when I put my DocumentContainer inside of the DockingManager (as seen in attached pic) the setting of Zindex doesn't seem to work anymore.
Any ideas on why Z Index setting isn't working? I've also tried just setting visibility of buttons on and off but it causes the buttons to break because of the binding (they are minimize, maximize, restore buttons).




noButtons_1ca6bee7.jpg

Prabhu P [Syncfusion]
Replied On August 17, 2009 10:26 AM

Hi Christina,

Thank you for your interest in Syncfusion products.

Could you please send us your sample to reproduce this issue? It would be much help us to work on this issue and provide you the possible solution at earliest.

Regards,
Prabu

Christina Robin
Replied On August 17, 2009 09:16 PM

I'm actually a newb to C# and WPF, could you kindly provide me all the details necessary as to how I should package and e-mail it to you? (what files should I send, etc?) Please provide me with an e-mail address as well.

Thank you.
Tina

Venugopal M [Syncfusion]
Replied On August 18, 2009 02:31 AM

Hi Christina,

You can compress your sample application as .zip format and attach it through attachment option which could be found at forum post page(During your next reply for this post).

Still If you face any difficulties, please send your sample to support@syncfusion.com with subject as forum id.

Please let us know if you have any questions.

Thanks for your interest in Syncfusion products.

Thanks,
Venugopal.

Christina Robin
Replied On August 18, 2009 04:36 AM

As well as exploring the Zindex issue, could you also look into why I can't place the min, max and restore buttons on TabControlExt (far right corner)? (please refer to my other question on min/max/resize buttons which has a sample image of what I'm trying to do). Basically all I'm trying to do is find a solution for placing the min/max/resize buttons in a suitable place, NOT on the menu bar (because as you can see from my program, my menu bar is very high up and it would look funny to put the buttons there) =)

Thanks!
Tina



CRT_prototype_backupAug18_80dc9a37.zip

Prabhu P [Syncfusion]
Replied On August 19, 2009 03:26 AM

Hi Tina,

Thanks for the sample. We noticed that you were hard coded for checking the DocumentContainer’s Width and Height with MDI element. The actual result of the difference value while checking the NewSize is 4 for FlowDocumentScrollViewer and 6 for DockingManager. You were given 4 in that condition hence it always return false for DockingManager. We have made the necessary changes from your sample. Please find the modified sample from the link given below and let us know if it meets your requirement.

Modified Sample

Please let us know if you have any further queries.

Thanks,
Prabu

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.

;