Is there a way to comment out XAML that contains comments?
问题 I am fairly new to WPF and using XAML. I get really frustrated that I can not select a chunk of XAML and comment it out in Visual Studio 2010 using the comment button in the toolbar if the highlighted section already includes some comments. Other languages allow you to nest comments inside of comments with no issue. Is there a way to comment out a comment in XAML using Visual Studio 2010? 回答1: No, there is no way of having nested comments in XAML. You could use the mc:Ignorable attribute on