M
Martin
I'm implemented a class called MyProvider which inherited from Component and
IExtenderProvider. i have the problem, that when I typed anything in the
visual studio designer in my MyItem-object which is provided by MyProvider,
the data is lost, after I clicked in another textbox. i added the following
methods in my provider:
[ProviderProperty("MyProvider", typeof(Control)]
public class MyProvider : Component, IExtenderProvider {
[ExtenderProvidedProperty]
[TypeConverter(typeof(MyItemConverter))]
public MyItem GetMyProvider(Control control) { }
[ExtenderProvidedProperty]
public void SetMyProvider(Control extendee, MyItem value) { }
public bool ShouldSerializeMyProvider(Control extendee) {}
}
my MyItem class has 4 properties. 2 of them are hidden for the designer
serialization.the last 2 properties are of type string.
any ideas why he deletes the entered data?
IExtenderProvider. i have the problem, that when I typed anything in the
visual studio designer in my MyItem-object which is provided by MyProvider,
the data is lost, after I clicked in another textbox. i added the following
methods in my provider:
[ProviderProperty("MyProvider", typeof(Control)]
public class MyProvider : Component, IExtenderProvider {
[ExtenderProvidedProperty]
[TypeConverter(typeof(MyItemConverter))]
public MyItem GetMyProvider(Control control) { }
[ExtenderProvidedProperty]
public void SetMyProvider(Control extendee, MyItem value) { }
public bool ShouldSerializeMyProvider(Control extendee) {}
}
my MyItem class has 4 properties. 2 of them are hidden for the designer
serialization.the last 2 properties are of type string.
any ideas why he deletes the entered data?