Jun 01, 2012, 2:34 PM
[CLOSED] Change property ComponentDirectEvents.Parent from internal to protected
I'm trying to create my own GridPanel with a custom DirectEvent by inheriting from Ext.Net.GridPanelBase and adding a custom GridPanelDirectEvent-property. To make the class more extendable in the future I'm using generics to set the type of the DirectEvents-property
public class MyGridPanel<T> : Ext.Net.GridPanelBase where T : TemplateGridPanelDirectEvents, new()
{
public T DirectEvents {get; set;}
}
public class TemplateGridPanelDirectEvents : GridPanelDirectEvents
{
...my new DirectEvent..
}
When you create a new instance of GridPanelDirectEvents the constructor expects observable Parent. Since I'm using generics I can only create my instance with a parameterless constructor. My idea was to set Parent after I created my instance but unfortunately the property have an internal set so I can't set it in my class. Would it be possible for you to change it from internal to protected?public partial class ComponentDirectEvents : BaseItem
{
public virtual Observable Parent
{
get;
internal set; // <- can you please change this to protected?
}
...
}
Last edited by Daniil; Jun 04, 2012 at 12:51 PM.
Reason: [CLOSED]