我是新手C#(WPF),我学习如何使用Ribbon Control。
这是错误消息在“RibbonTab”类型中找不到属性“Label” 这是代码:
<r:RibbonWindow x:Class="WpfApplication2.Editor"
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:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
mc:Ignorable="d" >
<Grid x:Name="LayoutRoot">
<r:Ribbon Title="WPF Ribbon - Document 1" x:Name="ribbon" />
<r:RibbonTab Label="Home"/>
<r:RibbonTab Label="Insert"/>
<r:RibbonTab Label="Help"/>
</Grid>
答案 0 :(得分:1)