のWindows 10にVisual Studio 2017とでWPFアプリケーションでリボンを作成します。 。 XAMLコード:私は次のように新しいアプリケーションにリボンを追加し、私は、Windows 10上でWindowsクラシックデスクトップ用に2017のVisual Studioで</p> <p>を新しいWPFアプリケーションを作成しました
<r:RibbonWindow x:Class="AKnowledgeBase.MainWindow"
xmlns:r1="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon"
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:local="clr-namespace:AKnowledgeBase"
mc:Ignorable="d"
xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
xmlns:r2="clr-namespace:Microsoft.Windows.Controls.Ribbon.Primitives;assembly=RibbonControlsLibrary"
Title="AKnowledgeBase" Height="350" Width="525">
<DockPanel>
<r:Ribbon>
<r2:RibbonTabsPanel></r2:RibbonTabsPanel>
</r:Ribbon>
</DockPanel>
</r:RibbonWindow>
そして、基本クラスを変更します。
public partial class MainWindow : RibbonWindow
{
public MainWindow()
{
InitializeComponent();
}
}
しかし、結果のアプリケーションウィンドウが醜い:あなたが見ることができ、上記画像を
にエクスプローラキャプション(Windows10では標準ビュー)と作成されたアプリケーションキャプション(Windows98スタイルのビューのように見えます)。
なぜ起こり、どのように修正できるのでしょうか?
UPD1:
Iが使用System.Windows.Controls.Ribbon.dllを参照の下、メインウィンドウを提案し、左とRIGH側に青色のアーチファクトを有する:
また場合Iこのウィンドウを最大化 - があるキャプションのバグ表示されます:
は、テキストpartitiallyカット。
いいえ、私はちょうど新しいWPFのソリューションを作成した - と、すべての変更あなたは最初の投稿で見ることができます。 – AeroSun