Exemplo n.º 1
0
        /// <summary>
        /// Sets the value of the
        /// <see cref="P:DigitalRune.Windows.Framework.Interactivity.Behaviors"/> attached property
        /// to a given <see cref="DependencyObject"/> object.
        /// </summary>
        /// <param name="obj">The object on which to set the property value.</param>
        /// <param name="value">The property value to set.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="obj"/> is <see langword="null"/>.
        /// </exception>
        public static void SetBehaviors(DependencyObject obj, StylizedBehaviorCollection value)
        {
            if (obj == null)
            {
                throw new ArgumentNullException(nameof(obj));
            }

            obj.SetValue(BehaviorsProperty, value);
        }
Exemplo n.º 2
0
 public static void SetBehaviors(DependencyObject uie, StylizedBehaviorCollection value)
 {
     uie.SetValue(BehaviorsProperty, value);
 }
 public static void SetBehaviors(DependencyObject uie, StylizedBehaviorCollection value)
 {
     uie.SetValue(BehaviorsProperty, value);
 }