Home Forums WPF controls Other WPF controls Avalon Dock Manager – unused area

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • rhayne04
    Participant
    Post count: 1
    #50961 |

    I’m using the latest Avalon dock manager under WPF. I’d like to use DirectX to draw some things in the unused area in the center. The space I’m talking about is the area when there isn’t any pane. For example, say you have a bottom side panel in the dock control and thats it. The area above it is unused. I want to draw in that space.

    The trouble is that I can’t get the dimensions of this space. The code below is what I’m trying to use to get the dimensions of the area, but it doesn’t work. In the case where I only have a bottom side panel, the Width is always NaN and the ActualHeight is 0.

    
            private Rect getUnusedDockpanelArea()
            {
                Point dockManagerTopLeft = dockManager.TranslatePoint(new Point(0, 0), mainWindow);
                Rect r = new Rect();
                r.Y = dockManagerTopLeft.Y * 1.3;
                r.X = dockManagerTopLeft.X;
                r.Width = dockManager.ActualWidth;
                if (dockManager.LeftSidePanel != null)
                    r.Width -= dockManager.LeftSidePanel.Width;
                if (dockManager.RightSidePanel != null)
                    r.Width -= dockManager.RightSidePanel.Width;
                r.Height = dockManager.ActualHeight;
                if (dockManager.BottomSidePanel != null)
                    r.Height -= dockManager.BottomSidePanel.Height;
                return r;
            }
    
    Evance
    Keymaster
    Post count: 4

    Hi,

    Which AvalonDock version are you currently using? If you are referring to the AvanlonDock control included in the latest release of Xceed Toolkit for WPF version 3.8, this implies that you may currently have an active subscription. If this is the case please submit your request to support@xceed.com with a sample app that reproduces the issue you are facing and more details about your intended goals so we can have a closer look. In addition, add reference to the forum thread as well as your invoice information. Thank you.

    Best regards,

    Evance Kafando
    The Xceed Technical Support Team

    Home

    Forums: https://xceed.com/forums/
    Documentation: https://xceed.com/documentation-center/
    Release notes: https://xceed.com/release-notes/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.