Ticket T285964
Visible to All Users

How to remove header and all actions from SlideGroup of WindowsUIView?

created 10 years ago

Hello!

I want to use DocumentManagers WindowsUIView to implement multi-document interface with the help of SlideGroup. The problem is - I don't need any of specific actions of SlideGroup and zoomed document. Also I don't need zoomed document header at all - i will implement my own controls that allows switching to SlideGroup or any of its document and I will implement my own document header control so I don't need zoomed document header with back button.

How do I remove all actions from SlideGroup and how I can do the same for zoomed document along with removal of zoomed document header with back button?

Thank you!

Answers approved by DevExpress Support

created 10 years ago

Hello,
To prevent showing Navigation Bars, I suggest that you handle the NavigationBarsShowing  event and set the e.Cancel parameter to true:

C#
private void windowsUIView1_NavigationBarsShowing(object sender, NavigationBarsCancelEventArgs e) { e.Cancel = true; }

If you only wish to remove actions, but keep showing the Navigation Bar, handle the  ContentContainerActionCustomization Event and remove necessary actions.

To hide the back button, utilize the approach from the Hide Back Button of DocumentManager/PageGroup thread.

Should you have further questions, let me know.

    Show previous comments (29)
    DevExpress Support Team 9 years ago

      Thank you for providing an example. I see the described behavior. It appears that changing it would be quite a complicated task. The approach I suggested is based on the dynamical content bounds calculation, which is performed on the content container drawing. So, the content container should be drawn twice in any case, otherwise, content bounds won't be calculated correctly. It impacts the control painting if a complex layout / control is used, that's why this behavior is not noticeable in my sample. So, if it is suitable for you (as a temporary solution) to use hardcoded offsets, you can use the previous approach.
      Please let me know if you need further assistance.

        Thank you. For now I will use hardcoded offsets and wait for implementation of hiding of content container headers.

        DevExpress Support Team 9 years ago

          OK. Please feel free to contact us in case of further difficulties.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.