Esempio n. 1
0
        /// <summary>
        /// Associates an implementation of IReactCompoundView with the view.
        /// </summary>
        /// <param name="view">The view.</param>
        /// <param name="compoundView">The implementation of IReactCompoundView.</param>
        public static void SetReactCompoundView(this object view, IReactCompoundView compoundView)
        {
            if (view == null)
            {
                throw new ArgumentNullException(nameof(view));
            }

            s_properties.GetOrAdd(view, (v) => new ViewData()).CompoundView = compoundView;
        }
        /// <summary>
        /// Associates an implementation of IReactCompoundView with the view.
        /// </summary>
        /// <param name="view">The view.</param>
        /// <param name="compoundView">The implementation of IReactCompoundView.</param>
        public static void SetReactCompoundView(this DependencyObject view, IReactCompoundView compoundView)
        {
            if (view == null)
            {
                throw new ArgumentNullException(nameof(view));
            }

            s_properties.GetOrCreateValue(view).CompoundView = compoundView;
        }
 /// <summary>
 /// Associates an implementation of IReactCompoundView with the view.
 /// </summary>
 /// <param name="view">The view.</param>
 /// <param name="compoundView">The implementation of IReactCompoundView.</param>
 public static void SetReactCompoundView(this DependencyObject view, IReactCompoundView compoundView)
 {
     ViewExtensions.SetReactCompoundView(view, compoundView);
 }