RibbonWindow Title

Ribbon for WPF Forum

Posted 9 years ago by Mick
Avatar
How do I make a RibbonWindow show a title on the window and in the task bar? I set the "Title" property of RibbonWindow::Window, but it's being ignored.

Thank you,
Mick

Comments (3)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Mick,

The Title property will update the taskbar. You can use ApplicationName and DocumentName to update the RibbonWindow's title bar.


Actipro Software Support

Posted 9 years ago by Mick
Avatar
Thank you, I got what I needed through the ApplicationName property.

Just FYI, the Title property doesn't update the taskbar as you had expected.

I'm using version 10.1.520.0

XAML:

<ribbon:RibbonWindow
    x:Class="TitleExample.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
    Title="This is My Title"
    Height="300"
    Width="400"
    >
    <Grid />
</ribbon:RibbonWindow>
Code: use the default code generated by Visual Studio

Thank you,
Mick
Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
I'm sorry, you're right. The Title is getting set by RibbonWindow to be "DocumentName - ApplicationName" if both of those properties are set. If only ApplicationName is set, then it will become the Title.

It originally was done this way since Office 2007 required drawing those in separate colors. And also that it's a bit of a helper because the application name typically stays constant and the document name can be changed interactively. By having them drive the title updates as well, it's one less thing for you to do.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.