We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to manage place on ribbon ?

Thread ID:

Created:

Updated:

Platform:

Replies:

89229 Aug 20,2009 05:40 AM Sep 8,2009 08:25 AM WPF 3
loading
Tags: Tools
Nazim YENIER
Asked On August 20, 2009 05:40 AM

Hi,
I am completely unable to manage place for controls that I'm placing inside syncfusion:RibbonBar and syncfusion:ButtonPanel.

Let's say I have a textblock and four buttons inside a syncfusion:ButtonPanel. What to do so that the textblock be on the first line, the first two buttons be on the second line and the other two buttons on the third line inside the ButtonPanel ?

Like this:
_____________
| textblock |
| B1 B2 | ===> This is my ButtonPanel
| B3 B4 |
|___________|


Same question for syncfusion:RibbonBar.

It seems to me there is no property anywhere to handle this. Sometimes all the buttons are alined. Sometimes they go on two lines. Sometimes they are out ouf the scope of the ButtonPanel/RibbonBar and the user can't acces them.

Thanks

Nazim YENIER

C. Sudha [Syncfusion]
Replied On August 21, 2009 06:20 AM

Hi Nazim,

As per the MicrosoftOffice2007 guideline, RibbonItems should get arranged based on available space in RibbonBar. This is indented behavior of RibbonBar layout. However, you could achieve your requirement by setting margin property for ButtonPanel explicitly.

For Instance,

In XAML:







TextBlock














Please let us know if you have any questions.

Thanks for choosing Syncfusion products.


Regards,
SudhaC.

Tobias O''Leary
Replied On September 4, 2009 12:21 AM

Hey SudhaC,

I ran into a similar problem, but came up with a different solution.
Would you say the following is appropriate/acceptable?
Or would you recommend me switching to the ButtonPanel approach?
Don't want to have stuff in there that might break with the next release.























-Tobias

C. Sudha [Syncfusion]
Replied On September 8, 2009 08:25 AM

Hi Tobias,

If you use Grid inside the RibbonBar for arranging the RibbonBar items, it will be constant and it will not re-arrange automatically based on the space availability. Hence I would recommend you to use ButtonPanel. As per the MicrosoftOffice2007 guideline, Ribbonbar items are automatically arranged by two or three rows based on the space available on RibbonBar when we host the items inside the ButtonPanel.

Please let us know if you have any queries.

Thank you for your interest in Syncfusion products.

Regards,
SudhaC.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;