注释掉XML [英] Commenting out XML

查看:146
本文介绍了注释掉XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑这段XML:

<ListBox x:Name="pictureBox"
                ItemsSource="{Binding}"
                 MouseDoubleClick="item_DoubleClick"
>

有什么办法可以注释掉MouseDoubleClick="item_DoubleClick"?尝试失败:

Is there any way to comment out MouseDoubleClick="item_DoubleClick"? This attempt fails:

<ListBox x:Name="pictureBox"
                ItemsSource="{Binding}"
                <!-- MouseDoubleClick="item_DoubleClick"-->
>

推荐答案

您可以注释掉整个元素,该元素将起作用,并在其下面放置没有该属性的修改后的版本.

You could just comment out the whole element, which would work, and underneath it put the modified version without that attribute.

这篇关于注释掉XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆