WPF 简单的提示和技巧? [英] WPF simple tips-and-tricks?
本文介绍了WPF 简单的提示和技巧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在边距和填充上胡闹,发现负值是可以接受的,并且在适当的情况下会产生很好的效果.例如,如果您有一个带有填充对象的边框,并且您希望填充对象的颜色超出边框.有人有其他的吗?
I was fooling around with margins and padding and found that a negative value was acceptable and gives a nice effect in appropriate circumstances. For instance, if you have a border with a filled object and you want the filled object color to overrun the border. Anyone have any others?
推荐答案
调试 WPF 绑定.
为绑定属性添加跟踪:
<Window …
xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=WindowsBase"/>
<TextBlock Text="{Binding Path=Caption,
diagnostics:PresentationTraceSources.TraceLevel=High}"…/>
您将在输出窗口中获得有关绑定的更多详细信息:
You will get in the output window much details about the binding:
PropertyChanged event from SomeObject (hash=1)
SetValue at level 0 from SomeObject (hash= 1) using RuntimePropertyInfo(Field):
'False'
TransferValue - got raw value 'False'
TransferValue - using final value 'False'
//编辑更多信息此处.
爱丽儿
这篇关于WPF 简单的提示和技巧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文