hello
I got some component derived from System.ComponentModel.Component,
which has some properties of type DataView. When I drag my component on
a form i want that this data view properties of my component were visible in
data source
selection list for some other component.
It is ok, when I set
[System.ComponentModel.DesignerSerializationVisibil ityAttribute(System.ComponentModel.DesignerSeriali zationVisibility.Content)]
before each dataview property. and i can bind my data view properties with
components
on forms. but there is one problem.
I need the designer to not serialize any data view property, just set
datasource property
of other components to my data view property and dont generate other getters
for this property.
The problem is that it is also creating initialization, BeginInit and
EndInit for Each property of type
data view (marked with attribute like above). I dont know how to make
designer not creating
this initialization part for this properties, only assigning them to other
components data source property.
Anyone could help me?
thanks
Luke