Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 .

like image 667
starkshang Avatar asked Nov 08 '22 19:11

starkshang


1 Answers

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

like image 137
ASpirin Avatar answered Nov 15 '22 12:11

ASpirin