This is a migrated thread and some comments may be shown as answers.

How do I make it fill 100% of width?

2 Answers 522 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Jason Maronge
Top achievements
Rank 1
Jason Maronge asked on 15 Nov 2010, 05:36 PM
Is there a way to make the command bar fill 100% of the width of its parent container?  I have only 3 items in it but would like to have the bar fill the whole width of my form.

Thanks,

Jason

2 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 16 Nov 2010, 12:42 PM
Hi Jason,

You can do this by setting the property below for the CommandBarStripElement you wish to stretch over the width of the screen.

Hope that helps
Richard
CommandBarStripElement1.StretchHorizontally = True
0
Jason Maronge
Top achievements
Rank 1
answered on 16 Nov 2010, 03:48 PM
Thanks that worked.  I thought I had tried that before, guess not.  Thanks again.
Tags
CommandBar
Asked by
Jason Maronge
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Jason Maronge
Top achievements
Rank 1
Share this question
or