GetIsSubscribed() private static method

Gets whether the specified dependency object is subscribed to the private managers or not.
private static GetIsSubscribed ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject The dependency object.
return bool
 /// <summary>
 /// Unsubscribes an element from the private managers.
 /// </summary>
 /// <param name="target">The framework element.</param>
 private static void UnsubscribeFrameworkElement(FrameworkElement target)
 {
     // If element is subscribed, unsubscribe.
     if (SlideInEffect.GetIsSubscribed(target))
     {
         SlideInEffect.SetParentPivot(target, null);
         SlideInEffect.SetParentPivotItem(target, null);
         SlideInEffect.SetIsSubscribed(target, false);
     }
 }
        /// <summary>
        /// Subscribes an element to the private managers.
        /// </summary>
        /// <param name="target">The framework element.</param>
        private static void SubscribeFrameworkElement(FrameworkElement target)
        {
            if (!SlideInEffect.GetIsSubscribed(target))
            {
                // Find the parent Pivot and PivotItem.
                Pivot            pivot, pTemp;
                PivotItem        pivotItem, iTemp;
                DependencyObject parent = VisualTreeHelper.GetParent(target);

                pTemp     = null;
                pivotItem = iTemp = null;

                while ((pTemp == null) && (parent != null))
                {
                    pTemp = parent as Pivot;
                    iTemp = parent as PivotItem;

                    if (iTemp != null)
                    {
                        pivotItem = iTemp;
                    }

                    parent = VisualTreeHelper.GetParent(parent as DependencyObject);
                }

                if (parent == null || pivotItem == null)
                {
                    return;
                }
                else
                {
                    pivot = pTemp;
                }

                AttachTransform(target);
                SlideInEffect.SetParentPivot(target, pivot);
                SlideInEffect.SetParentPivotItem(target, pivotItem);
                SlideInEffect.SetIsSubscribed(target, true);
            }
        }