比方说,我们有下面的代码:如何从标签中为属性定义添加注释?
<Window
x:Class="Consus.Client.UI.Sandbox.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
x:Name="RibbonWindow"
Width="800" Height="600"
MinWidth="800" MinHeight="600"
Title="MainWindow">
我们想在该行添加评论MinWidth =“800”了minHeight =“600”说“这是最小宽度/高度的申请“。我想:
<Window
x:Class="Consus.Client.UI.Sandbox.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
x:Name="RibbonWindow"
Width="800" Height="600"
MinWidth="800" MinHeight="600" <!--My comment goes here-->
Title="MainWindow">
但这引发的错误。那我该怎么做?