【发布时间】:2012-03-13 13:12:20
【问题描述】:
我在 WPF 中的 Label.Content 不显示“_”字符的第一次出现。为什么?
<Window x:Class="WpfApplication3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="148" Width="211">
<Grid>
<Label Content="L_abel" Height="28" HorizontalAlignment="Left" Margin="37,31,0,0" Name="label1" VerticalAlignment="Top" />
</Grid>
</Window>
当设置Label.Content ="L__abel" 时:
项目中没有额外的代码。
【问题讨论】:
-
@H.B. - 没有帮助的评论。如果不能询问 MSDN 文档中的任何内容,那么关于堆栈溢出的问题就会很少。如果你没有答案,就不要发帖,就这么简单。
-
我不同意。我没有阅读整个文档,因为它非常庞大且并非全部相关。我可以通过查看堆栈溢出找到我需要的相关信息。我很高兴这篇文章在这里,也很高兴得到答案。