3
考慮XML片段:註釋掉XML
<ListBox x:Name="pictureBox"
ItemsSource="{Binding}"
MouseDoubleClick="item_DoubleClick"
>
有什麼辦法註釋掉MouseDoubleClick="item_DoubleClick"
?此嘗試失敗:
<ListBox x:Name="pictureBox"
ItemsSource="{Binding}"
<!-- MouseDoubleClick="item_DoubleClick"-->
>
http://www.w3.org/TR/2006/REC-xml11-20060816/#IDAABES =>您將需要2個ListBox元素,一個註釋不帶屬性,另一個註釋... – 2011-03-09 10:13:58