/// <summary>Attempts to bring the requested UI element into view and raises the <see cref="E:System.Windows.FrameworkElement.RequestBringIntoView" /> event on the target in order to report the results.</summary>
        /// <param name="current">The UI element to bring into view.</param>
        // Token: 0x06000768 RID: 1896 RVA: 0x0001726C File Offset: 0x0001546C
        public static void BringIntoView(DependencyObject current)
        {
            if (current == null)
            {
                throw new ArgumentNullException("current");
            }
            FrameworkElement frameworkElement = current as FrameworkElement;

            if (frameworkElement != null)
            {
                frameworkElement.BringIntoView();
            }
            FrameworkContentElement frameworkContentElement = current as FrameworkContentElement;

            if (frameworkContentElement != null)
            {
                frameworkContentElement.BringIntoView();
            }
        }