public PropBagDyn(PropBagTypeSafetyMode typeSafetyMode, AbstractPropFactory thePropFactory) { if (typeSafetyMode == PropBagTypeSafetyMode.OnlyTypedAccess) { throw new ApplicationException("OnlyTypedAccess is not supported."); } propBag = new PubPropBag(typeSafetyMode, thePropFactory); InterceptEvents(propBag); }
public PropBagDyn(ControlModel.PropModel pm) { propBag = new PubPropBag(pm); System.Diagnostics.Debug.Assert(propBag.TypeSafetyMode != PropBagTypeSafetyMode.OnlyTypedAccess, "OnlyTypeAccess is not supported for PropBagDyn."); InterceptEvents(propBag); }
public PropBagDyn(byte dummy) { propBag = new PubPropBag(dummy); }
public PropBagDyn() { propBag = new PubPropBag(); // PropBagTypeSafetyMode.AllPropsMustBeRegistered); System.Diagnostics.Debug.Assert(propBag.TypeSafetyMode != PropBagTypeSafetyMode.OnlyTypedAccess, "OnlyTypeAccess is not supported for PropBagDyn."); InterceptEvents(propBag); }