public BindableListControlBase(IBindableListControl control) { Control = control; var ctrl = Control as Control; EntityProperty = ctrl.CreateVsProperty("Entity", BindEntities.Empresa); AddAllItemProperty = ctrl.CreateVsProperty("AddAllItem", false); AddNoneItemProperty = ctrl.CreateVsProperty("AddNoneItem", false); ParentControlsProperty = ctrl.CreateVsProperty("ParentControls", string.Empty); SelectedValuesProperty = ctrl.CreateVsProperty("SelectedValues", new int[0] as IEnumerable <int>); }