void OnResolvingContinuumElement(object sender, ResolvingContinuumElementEventArgs e)
 {
     e.ContinuumElement = (FrameworkElement)e.ContinuumElement
         .Descendants()
         .FirstOrDefault(x => (string)x.GetValue(FrameworkElement.NameProperty) == "ServerName")
         ?? e.ContinuumElement;
 }
        private void OnResolvingContinuumElement(ref FrameworkElement element)
        {
            var args = new ResolvingContinuumElementEventArgs(element);

            var handler = this.ResolvingContinuumElement;

            if (handler != null)
            {
                handler(this, args);

                element = args.ContinuumElement;
            }
        }