Ser*_*hov 81 data-binding wpf xaml
{Binding Path=.}WPF绑定意味着什么?
我看到有些人使用它,但找不到任何解释.
绑定语法中是否还有其他特殊符号(除了{Binding /})?
Rya*_*saw 60
几个月前我发现了这个WPF Binding CheatSheet并发现它非常有用,特别是对于任何学习WPF的人.其中有一些拼写错误,但它仍然相当不错.
这是一个小摘录(应该有表格格式):
Basic Binding
{Binding} Bind to current DataContext.
{Binding Name} Bind to the “Name” proeprty of the current DataContext.
{Bindind Name.Length} Bind to the Length property of the object in the Name property of the current DataContext.
{Binding ElementName=SomeTextBox, Path=Text} Bind to the “Text” property of the element XAML element with name=”SomeTextBox” or x:Name=”SomeTextBox”.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
81210 次 |
| 最近记录: |