Ticket Q365940
Visible to All Users

How Can I Create A Floating Panel From Code?

created 13 years ago

I cannot seem to find any code examples of how to create a floating LayoutPanel from code other than one that referred to the ExtraBars namespace that doesn't seem to work with the DXDocking product. I need to create a floating panel whose content is derived from a bound custom object using a DataTemplate. Your help will be greatly appreciated.
Tom

Show previous comments (8)

    Ted,
    Once again, thank you for providing me with the answer to what must seem a dumb question. Your enhancement to my test project works beautifully. May I bother you with one more question, not necessarily related to the Subject as stated above? I notice that when I dock one of my newly-created "status details" panels, its width is initially set to half that of the panel to which it is docked. Surely there must be a way of establishing the initial size that a panel takes when it is docked, right? I have looked without success in the places I expected to find it. Can you tell me how I can control this?
    Regards,
    Tom

    DevExpress Support Team 13 years ago

      Hi Tom,
      You can use the ItemWidth property to specify the width of a panel. I have attached a small sample project to illustrate the behavior of this property.
      Thanks,
      Ted

        As usual, Ted, you have nailed this for me.
        Thank you very much, once again, for your patience and your help.
        Regards,
        Tom

        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.