Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Center alignment button inside RIbbonGroupBox #206

Closed
Demarsch opened this issue Dec 1, 2015 · 1 comment
Closed

Center alignment button inside RIbbonGroupBox #206

Demarsch opened this issue Dec 1, 2015 · 1 comment

Comments

@Demarsch
Copy link

Demarsch commented Dec 1, 2015

I found the question similar to mine on CodePlex and seems like author didn't asked it here on GitHub so I just copy it here:

Hi, I have the following code:

<fluent:RibbonGroupBox Header="Table"
                       MinWidth="120"
                       HorizontalContentAlignment="Center">
               <fluent:Button Header="Создать"
                      LargeIcon="pack://application:,,,/PatientInfoModule;Component/Resources/Images/AddPatient-48x48.png"
                   SizeDefinition="Large"
                   HorizontalAlignment="Center"
                   Command="{Binding ContentViewModel.CreateNewPatientCommand}" />    
 </fluent:RibbonGroupBox>

In my case the header of group box is wider than button so I have to set min width. But I end up having button left aligned. If I don't set min width then group box header is clipped
image
image

How can I center align this button?

@batzen
Copy link
Member

batzen commented Dec 3, 2015

Currently there is no way to achieve this by the way you tried it.
I can see the use case for this so I will make it possible.

@batzen batzen added this to the 3.6.1 milestone Dec 3, 2015
@batzen batzen self-assigned this Dec 3, 2015
@batzen batzen closed this as completed in 1205efd Dec 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants