Forums

DS17237 : Allow Dock Panel Dock setting = Fill

Last post 7/4/2011 4:42 AM by Brian Maxim. 23 replies.
Support Center Article: DS17237
1 2 Next
Sort Posts: Previous Next
  • Gene Byrne

    DS17237 : Allow Dock Panel Dock setting = Fill

    7/22/2009 12:33 PM
    • Not Ranked
    • Joined on 4/23/2009
    • Posts 3
     Could someone explain why it has taken almost three years for this? Perhaps I'm missing something (hopefully I am), but it seems a fairly standard scenario to want the central control of a form to be part of the same docking system you're using for the entire form. Think of even a basic VS type editor. (Sure, there's a tab control there by default, but when you want multiple windows - or have multiple controls to work with, which is the entire point of a docking system is it not?? - you need this functionality.)

    Are you really saying that your docking system should be limited to essentially just toolbars and status controls when a basic control itself provides a fill dockstyle? It almost seems like this is an active choice on your part by disabling a basic control functionality. Clearly it's not, so could someone please explain - I'm really at a loss.. Is it a result of a poor implementation somehow? Are there any plans to fix this?
  • Robert Chaffe

    Re: DS17237 : Allow Dock Panel Dock setting = Fill

    7/23/2009 1:18 PM
    • Top 50 Contributor
    • Joined on 5/4/2007
    • Dallas, Texas
    • Posts 880

     Correct me if my guess is wrong but I think the central area of Visual Studio is not actually a dock panel.  It's either a user control docked within the main form, or a child form in an MDI interface.  The docked user control approach is the one I use to get around the limitation.  I just don't like having an inconsistent look-and-feel for my close button in the corner.

  • PatriceBattut

    RE: Re: DS17237 : Allow Dock Panel Dock setting = Fill

    8/3/2009 10:23 AM
    • Not Ranked
    • Joined on 4/29/2009
    • Posts 1
     Hello,

    When this feature is available?

    Thanks
  • Sachin Pise

    RE: RE: Re: DS17237 : Allow Dock Panel Dock setting = Fill

    8/3/2009 3:38 PM
    • Not Ranked
    • Joined on 9/25/2007
    • Posts 5
     Hello guys

    It is actually possible if you want to fill the DP to the entire client area. There is a small trick, you have manually change it in the code of Designer.cs.

    this.pc_Main.Dock = DevExpress.XtraBars.Docking.DockingStyle.Fill;

    Once changed, it remains as it is, unless you again change it in code or in Property window.

    So enjoy it.

    Thanks & Regards,
    Sachin
  • Krzysztof Dul

    RE: RE: RE: Re: DS17237 : Allow Dock Panel Dock setting = Fill

    10/7/2009 4:14 AM
     Hi All

    How about this (I'm not sure if this will work fine with saving etc).

    public sealed class CustomDockPanel : DockPanel
        {
            public void SetFillDockStyle()
            {
                SetDockStyle(DockingStyle.Fill);
            }

            public void SetTopDockStyle()
            {
                SetDockStyle(DockingStyle.Top);
            }

            private void SetDockStyle(DockingStyle style)
            {
                SuspendLayout();
                DockManager dm = DockManager;
                SetDockManager(null);
                Dock =style;
                dm.BeginUpdate();
                SetDockManager(dm);
                dm.EndUpdate();
                ResumeLayout();
            }
        }

  • David Wilkinson

    Re: RE: RE: Re: DS17237 : Allow Dock Panel Dock setting = Fill

    10/8/2009 7:10 AM
    • Not Ranked
    • Joined on 1/9/2008
    • Posts 6

    Thanks, the workaround did the job nicely. hopefully the official solution won't be another 3 years!

  • Xxx Xxx_1

    Re: RE: RE: RE: Re: DS17237 : Allow Dock Panel Dock setting = Fill

    10/16/2009 12:06 AM
    • Not Ranked
    • Joined on 10/16/2009
    • Posts 3

    can you please explane How to use it?

  • Bernd Niedergesaess

    RE: Re: RE: RE: RE: Re: DS17237 : Allow Dock Panel Dock setting = Fill

    10/20/2009 11:38 AM
    • Not Ranked
    • Joined on 7/30/2007
    • Posts 12
    Can somebody officially (from DevExpress) tell use, when this feature will be finally available in the real product?
  • Xxx Xxx_1

    Re: RE: Re: RE: RE: RE: Re: DS17237 : Allow Dock Panel Dock setting = Fill

    10/20/2009 9:45 PM
    • Not Ranked
    • Joined on 10/16/2009
    • Posts 3

    they already doing it for 3+ years SurpriseBig Smile

  • Nic Klopper

    RE: Re: RE: Re: RE: RE: RE: Re: DS17237 : Allow Dock Panel Dock setting = Fill

    11/21/2009 5:46 AM
    • Not Ranked
    • Joined on 5/9/2007
    • Posts 4
     C'mon guys, you said in 2006 "Accepted - Released TBD"  Christmas 2009 almost here.  Why?
  • David Isaza

    RE: RE: Re: RE: Re: RE: RE: RE: Re: DS17237 : Allow Dock Panel Dock setting = Fill

    3/26/2010 11:16 AM
    • Not Ranked
    • Joined on 1/22/2010
    • Posts 3
     OK its already 2010, are we going to see this feature working on the DevExpress2010, please I really need this so that our software works properly.  I guess someone from DevExpress modified this issue on 1/12/2009 but no details were given to us, at least a hint would be nice.

    Thanks.
  • Bob Lan

    Re: DS17237 : Allow Dock Panel Dock setting = Fill

    5/19/2010 7:58 PM
    • Not Ranked
    • Joined on 6/22/2009
    • Posts 9

     This feature is still not in v10.1 RC2.

  • Developer Express (Generic Account)

    RE: Re: DS17237 : Allow Dock Panel Dock setting = Fill

    6/8/2010 6:33 AM
    • Not Ranked
    • Joined on 1/27/2009
    • Posts 4

    We also want this feature.

    Why not just implement the workaround posted earlier as standard?

  • Josh Petrie

    Re: RE: Re: DS17237 : Allow Dock Panel Dock setting = Fill

    8/2/2010 8:03 PM
    • Not Ranked
    • Joined on 5/12/2010
    • Posts 2

    It's unclear to me how the above workaround (the CustomDockPanel class) is meant to be used -- the interface for DockManager.AddPanel() doesn't take a DockPanel as input in the 2010.1 version of the API, it just takes points and such and returns the new dock panel -- so do we need to subclass the DockManager and override the appropriate methods there to have it create instances of the CustomDockPanel class? Or is there a different entry point into dock panel creation that I'm missing?

     

    A more complex example of how to work around the docking panel's unfortunate inability to simulate a UI like Visual Studio's easily would be much appreciated.

  • David Isaza

    RE: DS17237 : Allow Dock Panel Dock setting = Fill

    8/6/2010 10:28 AM
    • Not Ranked
    • Joined on 1/22/2010
    • Posts 3
     Is there any chance we could get this feature working? Its been quite a while since this issue is open and many people want it to work, specially if it says it has the feature but it does not work. I have tried the proposed solutions but i have not been able to make it work, every time I resize my form I get empty spaces between my panels, this is unacceptable if the property is set as fill.
    Please at least tell us if someone is really working on this so we don't stay here waiting like idiots for this feature.
1 2 Next
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.