[CLOSED] ToolbarSpacer width

  1. #1

    [CLOSED] ToolbarSpacer width



    I'm trying to add different amounts of spacing between controls on a Toolbar. A Toolbar style would affect all controls the same, so I am looking at the ToolbarSpacer.

    However the ToolbarSpacer only adds a pixel or two and there doesn't seem to be a way to change its width. (setting .Width has no effect) Short of adding a bunch of ToolbarSpacers (lame) I can't figure out how to vary the amount of spacing.

    Is there a way to speciy the width of a ToolbarSpacer?

  2. #2

    RE: [CLOSED] ToolbarSpacer width

    Hi Randy,

    We added width support for toolbar spacer. Please update from the SVN
    *
  3. #3

    RE: [CLOSED] ToolbarSpacer width



    Vladimir;

    Got the update and confirmed that it works. Thanks.

    BTW, This is a bit of a nit, but it would be a nice enhancement if the ToolbarSpacer had a constructor that accepted either an int or Unit to set the spacing with. I code mostly in code-behind, and the following is a bit awkward:

    ToolbarSpacer sp = new ToolbarSpacer();
    sp.Width = Unit.Pixel(10);
    _toolbar.Items.Add(sp);
    But a constructor that took a width value would be much cleaner. i.e.:

    _toolbar.Items.Add(new ToolbarSpacer(10));
    Your Label control works like this and takes a string arg in the constructor. This paraidigm make it much easier for those of us that work in code-behind mostly rather than use a declarative style.

    Thanks again. Great product, great support!
  4. #4

    RE: [CLOSED] ToolbarSpacer width

    Hi Randy,

    The constructor has been added


    *

Similar Threads

  1. [CLOSED] Grid Panel : Column width (Auto width)
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 24, 2011, 8:31 PM
  2. [CLOSED] ToolbarSpacer fixed?
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 11, 2010, 2:45 PM
  3. Replies: 6
    Last Post: Jun 11, 2010, 12:47 PM
  4. [CLOSED] ToolbarSpacer
    By reinout.mechant@imprss.be in forum 1.x Help
    Replies: 4
    Last Post: May 08, 2009, 7:52 AM
  5. Replies: 2
    Last Post: Jan 08, 2009, 4:56 AM

Posting Permissions