2
Windows Classic Desktop用にVisual Studio 2017で新しいWPFアプリケーションを作成しました。Visual StudioでWPFアプリケーションでリボンを作成2017
私はリボンを追加する方法を見つけようとしましたが、私が見つけたのは古いバージョンのVisual Studioに関連していて、ここではうまく動作していないか、それ。
Visual Studio 2017を使用してXAML/WPFでリボンコントロールを追加するにはどうすればよいですか?
編集:私は、このXAMLコードで何かを得てきました
:
<Window x:Class="WMathTest.MainWindow"
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:ribbon="clr-namespace:System.Windows.Controls.Ribbon.Primitives;assembly=System.Windows.Controls.Ribbon"
xmlns:local="clr-namespace:WMathTest"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<DockPanel>
<Ribbon>
<ribbon:RibbonTabsPanel></ribbon:RibbonTabsPanel>
</Ribbon>
</DockPanel>
</Window>
それは何かが、それは別のウィンドウ内のリボンウィンドウです。リボン付きの通常のアプリケーションのように、リボンバーにウィンドウ名とボタンが含まれていません。 System.Windows.Controls.Ribbon
は、ウィンドウの代わりにRibbonWindowを使用します:
<RibbonWindow ...
はまた、部分の基本クラスを変更することを忘れないでくださいあなたは、次の参照を追加する必要があり