Ejemplo n.º 1
0
        protected PopupTip GetPopupTipWindow()
        {
            if (popup != null)
            {
                return(popup);
            }

            foreach (var item in Plotter.Children)
            {
                if (item is ViewportUIContainer)
                {
                    ViewportUIContainer container = (ViewportUIContainer)item;
                    if (container.Content is PopupTip)
                    {
                        return(popup = (PopupTip)container.Content);
                    }
                }
            }

            popup                 = new PopupTip();
            popup.Placement       = PlacementMode.Relative;
            popup.PlacementTarget = this;
            Plotter.Children.Add(popup);
            return(popup);
        }
Ejemplo n.º 2
0
		protected PopupTip GetPopupTipWindow()
		{
			if (popup != null)
				return popup;

			foreach (var item in Plotter.Children)
			{
				if (item is ViewportUIContainer)
				{
					ViewportUIContainer container = (ViewportUIContainer)item;
					if (container.Content is PopupTip)
						return popup = (PopupTip)container.Content;
				}
			}

			popup = new PopupTip();
			popup.Placement = PlacementMode.Relative;
			popup.PlacementTarget = this;
			Plotter.Children.Add(popup);
			return popup;
		}