I have added a sample program and movie.
What I want is that when the users clicks the print button in the toolbar, there should be slide in from the right side (so with animation) a panel on which is placed a print preview of a report.
My first approach was using the fly out panel. This was working, but the problem is that flyoutpanels has not the possibility to resize (for the end-user). So on this forum I have read that you should use the dockpanel.
So I have tried it in my example program. But there are some issues:
- I have noticed that a panel should set its visibility to AutoHide instead of hidden because otherwise it is never visible when calling ShowSliding
- But on the right side, the autohide tab should never be visible (the dock panel should slide in when clicking the print toolbar button and should completely hidden when it looses focus.) How to make the auto hide tab NEVER visible? (so that it is taking zero pixels)
- I have set the width to 800 in my sample program, you see that this width is not applied?