Designer - Components - Properties only visible in derived classes
-
I've made an Interface IDataFactory with a property ISqlDbComponent{get;set;} a component with the interface IDataFactory: public class DataFactory : System.ComponentModel.Component, IDataFactory The property should be visible with [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] but isn't. When I derive a component from DataFactory, the property ISqlDbComponent IS visible. I don't understand why and which Designer Attribute I have to add to the property to make it visible in the first implementation and not only in derived classes. The property is implemented in the component "DataFactory" so why it isn't visible in the designer? Thanks a lot Stefan
-
I've made an Interface IDataFactory with a property ISqlDbComponent{get;set;} a component with the interface IDataFactory: public class DataFactory : System.ComponentModel.Component, IDataFactory The property should be visible with [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] but isn't. When I derive a component from DataFactory, the property ISqlDbComponent IS visible. I don't understand why and which Designer Attribute I have to add to the property to make it visible in the first implementation and not only in derived classes. The property is implemented in the component "DataFactory" so why it isn't visible in the designer? Thanks a lot Stefan
STW wrote: The property should be visible with [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] but isn't. Thats not true. That controls what the designer 'saves', and that attribute means it will be saved. Look at BrowsableAttribute, but public Properties are visible by default. top secret xacc-ide 0.0.1
-
STW wrote: The property should be visible with [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] but isn't. Thats not true. That controls what the designer 'saves', and that attribute means it will be saved. Look at BrowsableAttribute, but public Properties are visible by default. top secret xacc-ide 0.0.1