Microsoft.Practices.Prism.Regions.Behaviors.ClearChildViewsRegionBehavior.SetClearChildViews C# (CSharp) Method

SetClearChildViews() public static method

Sets the ClearChildViews attached property in a DependencyObject.
public static SetClearChildViews ( DependencyObject target, bool value ) : void
target DependencyObject The object in which to set the value.
value bool The value of to set in the target object's ClearChildViews attached property.
return void
        public static void SetClearChildViews(DependencyObject target, bool value)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }

            target.SetValue(ClearChildViewsRegionBehavior.ClearChildViewsProperty, value);
        }