回答済み LightSwitch Custom Control Command Bar Location and Style

  • Friday, February 24, 2012 2:16 PM
     
     

    I've built several custom collection controls and control extensions for LightSwitch.  When these controls are added to a LightSwitch screen, the CommandBar is automatically generated, but is placed beneath the custom control with buttons that do not allow images.  All of the built-in LightSwitch collection cotrols (Grid or List) have the CommandBar at the top of the control and the buttons have a standard set of images (which are editable properties).   When combining custom controls in the same application with standard controls, this inconsistency makes for a very poor user experience.

    Does anyone know how to set the position of a CommandBar and the style of the buttons to allow images?

    Thanks,

    Dave

All Replies

  • Saturday, February 25, 2012 10:29 AM
     
     Answered
    Regarding the location of the command bar I am afraid there is nothing to do. It's also annoying to me but I have to leave with it I quess. Regarding the buttons PowerBala's ImageButton and Extended ImageButton improve the looks very much.

    1+1 = 3 for large values of 1

    • Proposed As Answer by Kostas Christodoulou Saturday, February 25, 2012 10:29 AM
    • Marked As Answer by DaveVanB Saturday, February 25, 2012 9:25 PM
    •  
  • Saturday, February 25, 2012 9:25 PM
     
     Answered

    Kostas,

    Thanks for the reply.  I am using Bala's ImageButtons and placing them inside an otherwise empty Rows Layout CommandBar which is placed just above my collection control.  In the end, it looks OK, but I was hoping to create a process for non programmers to get a consistent look and feel when using custom collection controls. 

    Maybe in the next version of LightSwitch.


    • Marked As Answer by DaveVanB Saturday, February 25, 2012 9:25 PM
    • Edited by DaveVanB Saturday, February 25, 2012 9:32 PM Added Screenshot to clarify.
    •  
  • Sunday, February 26, 2012 9:24 AM
     
     
    It would be nice if there was a generic CustomControlContainer Layout Group so to say that would do what you describe. It's easy to do I guess for LS Team.

    1+1 = 3 for large values of 1