以下为我返回 NULL,知道为什么吗?
MultiBinding collectionRange = new MultiBinding();
collectionRange.Bindings.Add(new Binding("CurrentPosition") { Source = View });
collectionRange.Bindings.Add(new Binding("Count") { Source = View });
collectionRange.StringFormat = "{0} of {1}";
tbFooter.SetBinding(TextBlock.TextProperty, collectionRange);
var x = tbFooter.GetBindingExpression(TextBlock.TextProperty);
MultiBinding 很好 - 属性有效并且它呈现在 UI 上..我似乎无法抓住绑定表达式(x 始终为 NULL)
我用这个方法错了吗?