Bug Report B193170
Visible to All Users

DockPanel.Width doesn't work

created 14 years ago

Hi DevExpress,
I'm creating DOckPanel in my code :

C#
DockPanel panneau = DockManager.AddPanel(DockingStyle.Right); panneau.Text = libellé; panneau.Visibility = DockVisibility.AutoHide; panneau.ImageIndex = 0; // Here panneau.Width equals 200 panneau.Width = 250; // Here panneau.Width still equals 200

The fact that I assign a new value to the width property of my DockPanel as no effect.
Is that a bug or am I doing something wrong ?
Thank you,
Julien

Comments (1)
DevExpress Support Team 14 years ago

    Hi Julien,
    You should first set the Width property and then set Visibility to AutoHide. In the AutoHide state, the size of the panel is controlled by the DockLayout object. DockLayout is a non-public property, so you cannot set the size of the sliding panel.
    Thanks,
    Ted.

    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.