Example #1
0
        public PropBagDyn(PropBagTypeSafetyMode typeSafetyMode, AbstractPropFactory thePropFactory)
        {
            if (typeSafetyMode == PropBagTypeSafetyMode.OnlyTypedAccess)
            {
                throw new ApplicationException("OnlyTypedAccess is not supported.");
            }

            propBag = new PubPropBag(typeSafetyMode, thePropFactory);
            InterceptEvents(propBag);
        }
Example #2
0
 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);
 }
Example #3
0
 public PropBagDyn(byte dummy)
 {
     propBag = new PubPropBag(dummy);
 }
Example #4
0
 public PropBagDyn()
 {
     propBag = new PubPropBag(); // PropBagTypeSafetyMode.AllPropsMustBeRegistered);
     System.Diagnostics.Debug.Assert(propBag.TypeSafetyMode != PropBagTypeSafetyMode.OnlyTypedAccess, "OnlyTypeAccess is not supported for PropBagDyn.");
     InterceptEvents(propBag);
 }