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,
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.
Please do not hesitate to let me know if you have any further questions on this matter.
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://ko.infragistics.com/community/forums/p/97903/482866.aspx#482866
Thanks!
I have been looking into your post.
Would you please set the HorizontalContentAlignment property of the ContentControl to Left too.
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" />
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'.