wpf - 如何在其中心设置 DXRibbonWindow 的标题

标签 wpf ribbon-control dxribbonwindow

我正在使用 DXRibbonwindow像这样:

<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
我希望标题位于窗口标题栏的中间,但它没有,我该怎么做?我正在使用 DevExpress 14.2.5 。

最佳答案

使用 Visual Studio Blend 覆盖默认控件模板或者像解释的那样here
我建议使用 Blendexamplethe difference blend and VS editors

关于wpf - 如何在其中心设置 DXRibbonWindow 的标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45346219/

相关文章:

c# - 数据绑定(bind)、属性更改事件

c# - 构建基于 WPF Ribbon 的应用程序的步骤

wpf - 拦截 RelativeSource FindAncestor

wpf - 适用于 WPF 的 Microsoft 功能区 (4.0.0.11019)

c# - 另一个进程使用的文件c#

wpf - WPF:另一个线程拥有的 Storyboard 循环对象

c# - WPF MVVM 中与 TAP 的异步(async/await)