Advanced Forum Search Results
-
It's so cool that you have an actual blackboard in your office.
-
Looks like the new Cider editor is powerful enough to keep me out of Blend (for the most part). I'm downloading right now.
But I must admit to being a little disappointed by your example. I believe that data binding between controls is an anti-pattern. It couples your UI components to each other, rather than allowing them to bind to a common ...
-
Ah, yes. I forgot that the defult binding mode is OneWay. Setting it to TwoWay worked.
I use DependencyProperty rather than INotifyPropertyChanged because I'm dynamically generating the bindable object (not in the source code I posted). Still, binding mode did the trick.
Thanks for the help. Hopefully I'll be able to specify the ...
-
I take that back. The above code does not appear to preserve data binding. I changed the SelectedPerson property to a DependencyProperty and found that selecting the person in the list does not update the detail controls below. Programmatically setting SelectedPerson updates the detail controls, but not the selected item in the list.
This ...
-
The code you suggested works, but it breaks data binding. This code also works, and preserves the binding:
peopleListBox.SetBinding(ListBox.SelectedItemProperty, new Binding("SelectedPerson"));
If I need to, I can use this workaround until the official release.
Thanks.
-
I created a ListBox with an ItemsSource, and saw that the items were populated. When I added the SelectedItem, it threw a NullReferenceException from the DataContext assignment. The same code works in both WPF and SL2. Here's the stack trace:
System.NullReferenceException was unhandled by user code
Message="Object reference not ...
-
I have a Silverlight 2.0 user control containing a two-way bound TextBox. It is bound to a CLR property on an object that implements INotifyPropertyChanged. The text box is not calling my property setter every time the text box is edited. It appears to skip every other edit.
The way in which I fire PropertyChanged is unusual and appears to be ...