Exemple #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);
        }
Exemple #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);
 }
Exemple #3
0
 public PropBagDyn(byte dummy)
 {
     propBag = new PubPropBag(dummy);
 }
Exemple #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);
 }