Due to the specifics of the Silverlight's dependency properties
, there is are two cases when the SelectedItem
will point to the newly selected item when the SelectionChanging
event is fired. The first case is when the SelectedItem
property is set programmatically. The second case is when the SelectedItem
is set via binding. If you select an item by tapping on a visual container in the RadDataBoundListBox
control, the SelectionChanging
event will be fired prior the initialization of the SelectedItem
This is implied because we cannot hook and validate the input when setting the SelectedItem
property via binding or programmatically and thus prevent it from being initialized with a value that might be canceled upon the SelectionChanging
I hope this explains the case.
Do not hesitate to get back to us in case you have further questions or need assistance.
All the best,
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>