Center Aligning Controls in a Ribbon Group

Nov 30, 2009 at 6:17 PM

I am trying to center align a ribbon button present within a ribbon group but am unable to do so. 

 

<r:RibbonCommand x:Key="LogInUserCommand"
                         Executed="LogInButton_Click"
                         CanExecute="OnCanExecute"
                         SmallImageSource="Images\small_led_green.png" LabelTitle="USER LOGIN TEST"/>

 

group command
<r:RibbonCommand x:Key="LogInUserCommand"
                         Executed="LogInButton_Click"
                         CanExecute="OnCanExecute"
                         SmallImageSource="Images\small_led_green.png" LabelTitle="USER LOGIN TEST"/>
button command
<r:RibbonCommand x:Key="LogInUser"
                         Executed="LogInButton_Click"
                         CanExecute="OnCanExecute"
                         LabelTitle="Log In"
                             ToolTipTitle="User LogIn"
                             ToolTipDescription="Click to Log In"
                         LargeImageSource="Images\led_green.png"/>

ribbon group 
<r:RibbonGroup Name="LogIn" 
                                   Command="{StaticResource LogInUserCommand}">
                    <r:RibbonButton Command="{StaticResource LogInUser}"/>
                </r:RibbonGroup>

a screen cap of the resulting ribbon is here

http://img22.imageshack.us/img22/224/41352374.jpg

 

 

I tried horizontal alignment and horizontal content alignement on both the ribbon group and the ribbon button but neither worked