示例#1
0
 public FrameworkPropertyMetadata(object defaultValue, FrameworkPropertyMetadataOptions flags, PropertyChangedCallback propertyChangedCallback, CoerceValueCallback coerceValueCallback, bool isAnimationProhibited, UpdateSourceTrigger defaultUpdateSourceTrigger) : base(defaultValue, propertyChangedCallback, coerceValueCallback, isAnimationProhibited)
 {
     if (!BindingOperations.IsValidUpdateSourceTrigger(defaultUpdateSourceTrigger))
     {
         throw new InvalidEnumArgumentException("defaultUpdateSourceTrigger", (int)defaultUpdateSourceTrigger, typeof(UpdateSourceTrigger));
     }
     if (defaultUpdateSourceTrigger == UpdateSourceTrigger.Default)
     {
         throw new ArgumentException(SR.Get("NoDefaultUpdateSourceTrigger"), "defaultUpdateSourceTrigger");
     }
     this.TranslateFlags(flags);
     this.DefaultUpdateSourceTrigger = defaultUpdateSourceTrigger;
 }