Change UpdateSourceTrigger in PropertyGrid
Hi,
I need to update the value of the properties (FirstName, LastName, Age, ecc) of my business object Customer binding on the control.
<sync:PropertyGrid x:Name="CustomerPropertyGrid" SearchBoxVisibility="Hidden"
EnableGrouping="True" SelectedObject="{Binding Path=Customer}" />
Viewmodel:
public class CustomerDetailViewModel : GenericViewModel
{
private CustomerViewModel _customer = null;
public CustomerViewModel Header
{
get { return _customer; }
set { SetProperty(ref _header, value); }
}
}
This example does not change the default UpdateSourceTrigger mode...
The CustomerView property is update at each keystroke in the PropertyGrid field.
I want to update CustomerView properties when the field loses the focus for example.
- 5 Replies
- 2 Participants
-
CS CSharpino
- Sep 26, 2017 06:34 AM UTC
- Sep 29, 2017 06:04 AM UTC