This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have a class that contains a struct as a property. If an instance of the class is bound to the property grid, the property that is a struct is shown as a property (as expected). Further, the property can be expanded to see the properties of the struct. If I try to change a property of the struct, the textbox in the property grid loses focus after a single character is typed. The only way I can enter a value with more than one character is to paste some text into the textbox of the property grid. This can easily be reproed by binding an instance of the Outer class (below) to the property grid: public class Outer : INotifyPropertyChanged { private Inner inner;
public Inner Inner { get { return this.inner; } set { this.inner = value; this.PropertyChanged(this, new PropertyChangedEventArgs("Inner")); } }
public event PropertyChangedEventHandler PropertyChanged = delegate { }; }
public struct Inner { public int X { get; set; } public int Y { get; set; }
public override string ToString() { return string.Format("{0},{1}", this.X, this.Y); } }
Am I missing something, or is this a bug?
Thanks! Ryan |
|
|
Thanks for alerting us to this. This is a bug. I've committed a fix and it will be included in the 19 May nightly build, available from about 1500 GMT. Please let us know if you still see this problem after installing the nightly. |
|