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
public void SetPadding(int paddingVal){ foreach(BaseLayoutItem item in layoutControl.Items) item.Padding.All = paddingVal; }
HTH
Hey,
I know how to do it by code at run-time. I want more and easier control at design-time.
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.
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)