FlowDirection.RightToLeft 弄乱了字符串
切换到 RightToLeft(通过更改 MainWindow.FlowDirection)会更改末尾有圆括号(右括号)的字符串,方法是将其作为左括号放在开头。
我缺少什么吗?这是一个错误吗?这是正常的吗?
这是启用 RTL 后的样子:
.. 这就是方式禁用 RTL 后的情况如下:
请注意括号如何变化?
Switching to RightToLeft (by altering MainWindow.FlowDirection) changes strings which have a round (closing) paranthesis at the end by placing it as an opening paranthesis at the start.
Is something that I'm missing? Is this a bug? Is it normal?
This is how things look with RTL enabled:
.. and this is how things look with RTL disabled:
Notice how the paranthesis change?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,这是一个已知的 WPF 错误。
解决方法是在字符串后面添加一个不可见字符:
或者使用
Replace of
Unfortunately this is a known WPF bug.
The workaround is to have an invisible character after the string:
Or use
Instead of