public static ApplicationMapTip FromXaml(string xaml)
        {
            Border border = null;

            if (!string.IsNullOrEmpty(xaml))
            {
                border =

#if SILVERLIGHT
                    XamlReader.Load(
#else
                    XamlReader.Parse(
#endif
                        xaml) as Border;
            }

            if (border != null)
            {
                Border outerBorder = border;
                Border childBorder = border.Child as Border; // we actually are tweaking the inner border
                if (childBorder != null)
                {
                    border = childBorder;
                }
                if (border != null)
                {
                    ApplicationMapTip mapTip = new ApplicationMapTip();
                    mapTip.BorderThickness = border.BorderThickness;
                    return(mapTip);
                }
            }
            return(null);
        }
        public static ApplicationMapTip FromXaml(string xaml)
        {
            Border border = null;
            if (!string.IsNullOrEmpty(xaml))
            {
                border =

#if SILVERLIGHT
 XamlReader.Load(
#else
           XamlReader.Parse(
#endif
xaml) as Border;
            }

            if (border != null)
            {
                Border outerBorder = border;
                Border childBorder = border.Child as Border; // we actually are tweaking the inner border                
                if (childBorder != null)
                    border = childBorder;
                if (border != null)
                {
                    ApplicationMapTip mapTip = new ApplicationMapTip();
                    mapTip.BorderThickness = border.BorderThickness;
                    return mapTip;
                }
            }
            return null;
        }