J
J
Hi,
I'm trying to get designer support in Compact Framework 1SP2 to work.
I check the v2 beta and there doesn't seem to be any support
forthcoming.
What I want is to see at designtime how the bindings in the controls
are set. The equivalent in a regular .Net application of the little
keys beside the property and the DataBindings collection.
In a perfect solution I would add a new designer to Data* classes and
Forms-controls so the properties are exposed and there is no
difference anymore between CF and desktop. The designers should
produce native CF code of course.
I'm sort of half way there. I created a derived control (CheckBox)
which exposes the DataBindings and has the browsable attributes set. I
can then see the bindings and manipulate them. However when I try to
set a property it gives an invalid cast. Most likely it calls the
baseclass Binding, which has no design support. I could continue along
this road, but then I would create a complete shadow implementation of
CF. Definitely too much work.
How much work would it be to add design time database support to the
CF framework?
Or how to add a custom designer to an existing class?
Any suggestions or ideas will be welcome.
J.
I'm trying to get designer support in Compact Framework 1SP2 to work.
I check the v2 beta and there doesn't seem to be any support
forthcoming.
What I want is to see at designtime how the bindings in the controls
are set. The equivalent in a regular .Net application of the little
keys beside the property and the DataBindings collection.
In a perfect solution I would add a new designer to Data* classes and
Forms-controls so the properties are exposed and there is no
difference anymore between CF and desktop. The designers should
produce native CF code of course.
I'm sort of half way there. I created a derived control (CheckBox)
which exposes the DataBindings and has the browsable attributes set. I
can then see the bindings and manipulate them. However when I try to
set a property it gives an invalid cast. Most likely it calls the
baseclass Binding, which has no design support. I could continue along
this road, but then I would create a complete shadow implementation of
CF. Definitely too much work.
How much work would it be to add design time database support to the
CF framework?
Or how to add a custom designer to an existing class?
Any suggestions or ideas will be welcome.
J.