下划线"_"设置数据上下文后消失 [英] underscore "_" disappearing after setting datacontext
问题描述
我有几个列表框,这些列表框是通过数据上下文或加载了设置的标签内容进行设置的.然而,沿着底线的某个地方似乎消失了.例如.一个列表框包含数据库的表名,某些表名的名称下带有下划线,例如META_CONFIGURATION.在我的列表框中,它显示为METACONFIGURATION.但是,双击某个项目会将其设置为文本框,然后再次显示META_CONFIGURATION. IOW名称似乎正确,但显示不正确.另外,并非所有下划线都消失.
起初我以为它是与datacontext链接的,但是调试表明它在那里是正确的.没有附加的价值转换器.
关于此的谷歌没有产生任何结果,我以前也没有见过这种行为.
有人知道吗?这可能是一个美丽的错误,但却是一个非常烦人的错误.
非常感谢.
I have several listboxes that get set via a datacontext or label contents loaded with a setting. Somewhere along the line however underscores seem to disappear. eg. One listbox contains the table names of the database, some table names have an underscore in their name like META_CONFIGURATION. in my listbox, it is showing up as METACONFIGURATION. However, doubleclicking an item sets it to a textbox and there META_CONFIGURATION shows up again. IOW the name seems correct, but is not showing correctly. Also, not all underscores disappear.
At first I thought it was linked to the datacontext, but debugging showed it is correct there. There are no valueconverters attached.
A google on this didn''t produce any results and I haven''t seen this behavior before.
Has anybody got any idea? It might be a beauty error, but a very annoying one.
Many thanks.
推荐答案
下划线是否像META C ONFIGURATION一样显示为下划线?
Does the underscore appear as an underline like METACONFIGURATION?
这篇关于下划线"_"设置数据上下文后消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!