I am using WPF Xceed.Wpf.Toolkit.PropertyGrid
to show properties of my object for user to edit.
My class property is as shown below:
private double height;
[Browsable(true)]
[RefreshProperties(RefreshProperties.All)]
public double Height
{
get
{
return height;
}
set
{
bodymass = height * 10;//Some other property
_height= value;
}
}
For each key press, set() is called and the grid row is loosing its focus due to RefreshProperties.All
. Due to that, it is not possible to continuously type values to the grid row.
Is it possible to keep focus on the same property I was type in?
Or at least, it there a way to instruct the set() to be called only when user click enter/ loose focus?