コード例 #1
0
 public void find_all_bindings()
 {
     var dataContext = new Data();
     var tb = new TextBox { DataContext = dataContext };
     tb.SetBinding(UIElement.VisibilityProperty, "IsVisible");
     tb.SetBinding(TextBox.TextProperty, "Text");
     var bndg = tb.GetBindings();
     bndg.Should().HaveCount(2);
 }