[英]how to add multiple line commenting in wpf xaml file?
<Grid Name="grid2" Grid.Row="1" Margin="10,5,10,10" TextBlock.Foreground="White">
<Grid.RowDefinitions>
<RowDefinition Height="100" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
</Grid>
I want to comment the lines regarding grid2 我想评论关于grid2的线
There is no difference in XML (and thus XAML) between multi-line and single-line commenting: 多行和单行注释之间的XML(以及XAML)没有区别:
<!-- single line -->
Vs. 比。
<!--
multi
line
-->
To help you there are shortcuts available in Visual Studio , like commented by others: 为了帮助您,Visual Studio中提供了快捷方式 ,例如其他人评论:
Ctrl + K , C : Comment Ctrl + K , C :评论
Ctrl + K , U : Uncomment Ctrl + K , U :取消注释
To comment in Visual Studio 在Visual Studio中发表评论
Select the lines, 选择线条,
CTRL+K +C
UNcomment 取消注释
CTRL+K+U
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.