Disons que nous avons le code ci-dessous:Comment ajouter un commentaire pour une définition d'attribut à partir d'un tag?
<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">
Et nous voulons ajouter un commentaire à la ligne MinWidth = « 800 » MinHeight = « 600 » dire « Ceci est la largeur/hauteur minimale de l'application ". J'ai essayé:
<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">
Mais cela a déclenché une erreur. Alors, comment puis-je faire ça?