Completed
Last Updated: 21 Mar 2016 13:38 by ADMIN
ADMIN
Dimitar
Created on: 09 Mar 2016 07:21
Category: CommandBar
Type: Bug Report
1
FIX. RadCommandBar - getting the PreferredSize changes the control size and the inner controls are not visible.
To reproduce:
- Add some controls to a command bar.
- Get the PreferredSize like this:

 Console.WriteLine(radCommandBar1.PreferredSize.ToString());

Workaround:
class MyCommandBar : RadCommandBar
{
    public override Size GetPreferredSize(Size proposedSize)
    {
        if (proposedSize.Width == 0 && proposedSize.Height == 0)
        {
            return this.Size;
        }
        return base.GetPreferredSize(proposedSize);
    }
}
0 comments