表达混合改变对齐方式
当使用键盘或鼠标移动 TextBlock 对象时,Expression Blend 4 会更改 HorizontalAlignment 和/或 VerticalAlignment。这怎么能被阻止呢?
Expression Blend 4 is changing the HorizontalAlignment and or VerticalAlignment when moving TextBlock objects with the keyboard or mouse. How can this be blocked?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为这是不可能的。它是一个可视化编辑器,它将根据执行更改后视图的外观生成代码。它将根据其理解创建与您创建的布局相匹配的最佳代码。
I don't think it can be done. Its a visual editor, it will generate code depending on how the view looks after you're performed changes. It will create the best code that will match the layout you created based on what it understands.
这样做的时候很痛苦..
进入 XAML 视图,在您确信一切都在正确的位置并且尺寸正确后,只需更改对齐方式和边距即可手动修改它。
It's a pain when it does that..
Go into the XAML view, and modify it by hand after you're happy everything is the right place and is the correct size, by just changing the Alignments and margins.
如果单击该对象,您会注意到引导条从该对象垂直和水平移动。在这些的最后,您会看到一些“链环”图标。您可以在任一端单击打开和关闭这些按钮来切换对齐方式。
If you click the object, you will notice guide bars traveling vertically and horizontally from the object. At the end of these you will see little "chain link" icons. You can click these on and off at either end to toggle the alignment.