starkshang
starkshang

Reputation: 8558

How to set title of DXRibbonWindow in its center

I'm using DXRibbonwindow like this:

<dxr:DXRibbonWindow  x:Class="MyNameSpace.MyRibbonWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:dxn="http://schemas.devexpress.com/winfx/2008/xaml/navbar"
    xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
    xmlns:dxd="http://schemas.devexpress.com/winfx/2008/xaml/docking"
    xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
    xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
    xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
    SnapsToDevicePixels="True"
    WindowStartupLocation="CenterScreen" WindowState="Maximized"
    Title="title">
    <Grid>
        ...
    </Grid>
</dxr:DXRibbonWindow>

enter image description here I want the title to be in the middle of the window's titlebar, but it doesn't, how can i make it? I'm using DevExpress 14.2.5 .

Upvotes: 5

Views: 235

Answers (2)

starkshang
starkshang

Reputation: 8558

This problem occured in version 14.5 of DEVExpress, I upgrade its version to the newest 17.1 then the problem has been solved, thanks for the DevExpress developer.

Upvotes: 0

ASpirin
ASpirin

Reputation: 3651

Override default control template using Visual Studio Blend or like it's explained here I would recommend to use Blend see an example and the difference blend and VS editors

Upvotes: 1

Related Questions