Hello,
I need to change ContentPane's header when it's minimized. Is there any event for ContentPane's minimizing?
Thanks.
Hello Alexey,
Thank you for your post. I have been looking into it, but I am not sure that I fully understand your requirement, so could you please be more specific what do you mean by “ContentPane's minimizing”, because the pane cannot be minimized as a Window for example. It will be great if you send us screenshots of the two states, so we could be able to investigate this further for you.
Looking forward for your reply.
Thank you for reply, Stefan. You are right, as far as I understand, PaneToolWindow is really minimized, not ContentPane. I made the screenshot from Infragistics examples. How can I define that the window has just minimized?
After working on this and doing some research, "PaneToolWindow''s Minimize event" has been determined to be a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Hello Stefan,
OK, I'll add a new product idea, if there is no appropriate event now. But I have one more similar problem. I press 'Auto Hide' button for the window in Dockable state and I change ContentPane's header by processing ExecutedCommand event for ContentPaneCommands.TogglePinnedState command, but I want to set the old header text when I put the cursor on the hidden window and it becomes shown. I haven't found any event I can process in such situation.
I mean, that if I have 'Window' caption for ContentPane and then I press 'Auto Hide' button, the caption for the hidden window will be 'Window <some text>'. When I put the cursor on the header of the hidden window to show it, the caption should become 'Window' again. So it should be 'Window' caption for the shown window and 'Window <some text>' for the hidden one.
P.S. By the way, I've tried to use OnSizeChanged event for ContentPane, because I've supposed it'll be generated on minimizing of PaneToolWindow. But OnSizeChanged is called only for the first time's minimizing and maximizing and isn't called later.
I have created a sample project with the functionality you want. Basically I created a Style for the UnpinnedTabFlyout element and add an EventSetter for its loaded event. In the handler I handle the IsVisibleChanged event, which fires when the ContentPane flies in or out. Please let me know if you need further assistance on this matter,.
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Thank you for your reply. Unfortunately, I had no time to get this worked till this moment because of other tasks. But I can return to this suspended issue now. I'm still can't understand clearly the role of UnpinnedTabFlyout here. Can I just define IsVisibleChanged event handler to manage with this situation?