Apr 20, 2012 at 8:56 PM
Edited Apr 20, 2012 at 8:57 PM
|
I have an issue similar to this and wanted to see if your fix will address my issue. If so, when will the fix be available for download via NuGet?
I have a ComboBox on a view that is bound to a Catel property. When the selection changes I want to reload my data. I am attempting to do it like this:
(From xaml)
<ComboBox ItemsSource="{Binding ProviderList}" DisplayMemberPath="ProviderName" SelectedValuePath="ProviderId" SelectedValue="{Binding ProviderFilter, UpdateSourceTrigger=PropertyChanged}" />
(From view model which inherits from ViewModelBase)
public int? ProviderFilter{
get { return GetValue<int?>(ProviderFilterProperty); }
set { SetValue(ProviderFilterProperty, value);
LoadData();
}
public static readonly PropertyData ProviderFilterProperty = RegisterProperty("ProviderFilter", typeof(int?), null);
If I put a break point on the set portion of the property, it only hits if I set the property value through code. If I make a selection using the combo which is bound, I can verify that the property value is getting changed, but the break point never
hits and therefore my LoadData method doesn't get called.
|