Beispiel #1
0
        public void SetCurrentValue(DependencyProperty dp, object value)
        {
            INTERNAL_PropertyStorage storage;

            INTERNAL_PropertyStore.TryGetStorage(this, dp, true /*create*/, out storage);
            INTERNAL_PropertyStore.SetValueCommon(storage, value, true);
        }
Beispiel #2
0
        public void SetValue(DependencyProperty dp, object value)
        {
            // Verify the arguments:
            if (dp == null)
            {
                throw new ArgumentNullException("No property specified");
            }

            INTERNAL_PropertyStorage storage;

            INTERNAL_PropertyStore.TryGetStorage(this, dp, true /*create*/, out storage);
            INTERNAL_PropertyStore.SetValueCommon(storage, value, false);
        }