<Grid Name="grid2" Grid.Row="1" Margin="10,5,10,10" TextBlock.Foreground="White">
<Grid.RowDefinitions>
<RowDefinition Height="100" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
</Grid>
我想评论关于 grid2 的行
最佳答案
多行注释和单行注释在 XML(以及 XAML)中没有区别:
<!-- single line -->
对比
<!--
multi
line
-->
为了帮助你,有 shortcuts available in Visual Studio ,就像其他人评论的那样:
Ctrl+K,C: Comment
Ctrl+K,U: Uncomment
关于c# - 如何在 wpf xaml 文件中添加多行注释?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24628536/