Somewhere along the way between 2013.1 and 2015.1 default justification for XamRibbonWindow Title became Center. Is there an easy way to change that back so that the title text following window icon is left-justified(HorizontalAlignment=Left)? Thanks.
Hello Andre,
Thank you for your post!
I have been looking into it and have created a small sample application in order to test the functionality you have mentioned. I have tested the sample application with both 15.1 and 13.1 versions of our controls. In both versions the Title of the XamRibbonWindow is in the center.
I am attaching screenshots of the two versions.
Would you please provide me with more detailed information of you functionality you are using for the XamRibbonWindow? This way I would be able to further investigate this matter for you.
Looking forward to hearing from you.
My question was about Title of the XamRibbonWindow, the bold on the following snippet. How do I make it appear left justified?
<igRibbon:XamRibbonWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ignore="http://www.ignore.com" mc:Ignorable="d ignore" ResizeMode="CanResizeWithGrip" xmlns:igOutlookBar="http://infragistics.com/OutlookBar" xmlns:igDock="http://infragistics.com/DockManager" xmlns:igRibbon="http://infragistics.com/Ribbon" xmlns:igWindows="http://infragistics.com/Windows" xmlns:local="clr-namespace:CurveManager_UI" xmlns:vm="clr-namespace:CurveManager_UI.ViewModels" xmlns:uc="clr-namespace:CurveManager_UI.UserControls" xmlns:cmn="clr-namespace:CurveManager_UI.Common" x:Name="mwMain" x:Class="CurveManager_UI.MainWindow" Title="{Binding Path=AppTitle}" Height="800" Width="1100" WindowState="Maximized" Icon="pack://application:,,,/Resources/AppMain.ico" cmn:CommandBindingProperties.RegisterCommandBindings="{Binding CommandBindings}" Closing="mwMain_Closing" DataContext="{Binding Main, Source={StaticResource Locator}}">
There is a style, that you can use. The style is targeting ContentControl and the key of this style is RibbonCaptionPanel.CaptionStyleKey. You can find it the default styles for our controls in the file 'RibbonGeneric' in the Ribbon folder. Once you have the product installed you can find them in the following directory: C:\Program Files (x86)\Infragistics\2015.1\WPF\DefaultStyles\Ribbon.
You can add this style in the Resources of the XamRibbonWindow and set the HorizontalAlignment and the TextBlock.TextAlignment properties for the ContentControl to 'Left'.
Please do not hesitate to let me know if you have any further questions on this matter.
I found and pasted the style you mentioned out of RibbonGeneric.xaml and changed the TextBlock.TextAlignment = left. I see no changes on how the text appears. This is the modified part below pasted into my Window.Resources. Any other suggestions? Thanks.
<!-- =================================================================== --> <!-- Caption ContentControl Style --> <!-- =================================================================== --> <Style TargetType="{x:Type ContentControl}" x:Key="{x:Static igRibbon:RibbonCaptionPanel.CaptionStyleKey}"> <Setter Property="Focusable" Value="False" /> <Setter Property="IsHitTestVisible" Value="False" /> <Setter Property="TextBlock.TextAlignment" Value="Left" />
I have been looking into your post.
Would you please set the HorizontalContentAlignment property of the ContentControl to Left too.
Gerdana, that done the trick and this issue is now resolved. Could you please assist me with the other new issue I identified when moved to 15.1 - I'm not getting any feedback on that other post: http://es.infragistics.com/community/forums/p/97903/482866.aspx#482866
Thanks!
I am glad I was able to help. Regarding the other forum thread, that you have mentioned I see, that one of my colleagues has already replied to that thread.