in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Padding

Last post 8/27/2008 5:25 PM by Jason. 4 replies.
Page 1 of 1 (5 items)
Sort Posts:
Previous Next
  • 4/29/2008 6:03 PM

    Padding

    Hi,

    How can I set the padding of the items to 2 instead of 5 on 1 place? I hate to change it for every single item and it must be possible to do this more easy.

    Greetings,

    Sigurd

  • 5/3/2008 4:18 PM In reply to

    • Pavel
    • Top 200 Contributor
    • Joined on 7/4/2007
    • Posts 55

    Re: Padding

    public void SetPadding(int paddingVal){ foreach(BaseLayoutItem item in layoutControl.Items) item.Padding.All = paddingVal; }

    HTH 

    WPF HATER BLOG
    http://wpfhater.blogspot.com/
  • 5/4/2008 3:15 AM In reply to

    Re: Padding

    Hey,

    I know how to do it by code at run-time. I want more and easier control at design-time.

    Greetings,

    Sigurd

  • 8/27/2008 1:31 PM In reply to

    • Jason
    • Top 500 Contributor
    • Joined on 1/24/2008
    • Posts 29

    Re: Padding

    I have the opposite problem. Changing via design-time is not a problem, but when I attempt to change padding via code I get:

    Expression is a value and therefore cannot be the target of an assignment.

  • 8/27/2008 5:25 PM In reply to

    • Jason
    • Top 500 Contributor
    • Joined on 1/24/2008
    • Posts 29

    Re: Padding

    The above code doesn't seem to work anymore, at least not for me in VB. Use the following code:

    lciItem.Padding = New XtraLayout.Utils.Padding(0)

Page 1 of 1 (5 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED