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}}">
Thank you for the modified sample application.
I have been looking into it and using both string and binding for the Title of the XamRibbonWindow, the Text appears in the center as in the screenshots I have attached I one of my previous posts.
In order for me to be able to further investigate this matter for you would you please provide me with more detailed information regarding the environment in which you are developing your application (Operating system, Service Release, Integrated development environment and the specific version of our product that you are using and any other information that might help reproducing your issue)?
Also would it be possible to provide me with screenshot with the appearance of the XamRibbonWindow on your side?
Actually you're correct - no matter whether I bind it or set the Title to some string the title appears centered. I use Xam Ribbon 15.1, 15.1.20151.2055 to be more specific. Run run of the mill Windows 7 Enterprise SP1. Screenshot is attached. I need to make the title show to the left of the title bar.
I have been looking into your latest post.
Currently the chrome part of the Window(in this case the XamRibbonWindow), where the Title is, is controlled by the operating system. More about this you can find on the following link: http://forum.palemoon.org/viewtopic.php?f=29&t=3795 , http://stackoverflow.com/questions/11824181/how-to-left-align-window-title-in-windows-8-2012 .
Please do not hesitate to let me know if you have any further questions on this matter.
Gerdana - I don't think that is the answer regardless of whether or not the OS controls this. Keep in mind that I migrated from version 2013 volume 1 to 2015 volume 1 and the behavior changed - I got a centered Title instead of Left-justified. I am just trying to change it back without having to downgrade back to 2013...
I suggest you reach out to the development team to see if there is a way to override this new behavior of the title. Thanks.
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'.
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.
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" />