public Level_AreaItemControl(Level_AreaItemWrapper wrapper, BitmapImage icon)
            : base(wrapper, icon)
        {
            PropertyInfo prop = null;
            // Текст подсказки
            StringBuilder sb = new StringBuilder();
            sb.AppendLine(String.Format(Localization.Tooltip_Level, wrapper.Caption));

            prop = wrapper.GetCustomProperty(InfoBase.HIERARCHY_CAPTION);
            if (prop != null)
            {
                sb.AppendLine(String.Format(Localization.Tooltip_Hierarchy, prop.Value));
            }
            prop = wrapper.GetCustomProperty(InfoBase.DIMENSION_CAPTION);
            if (prop != null)
            {
                sb.AppendLine(String.Format(Localization.Tooltip_Dimension, prop.Value));
            }
            prop = wrapper.GetCustomProperty(InfoBase.CUBE_CAPTION);
            if (prop != null)
            {
                sb.AppendLine(String.Format(Localization.Tooltip_Cube, prop.Value));
            }

            String str = sb.ToString();
            str = str.TrimEnd('\n');
            str.TrimEnd('\r');

            // Подсказка
            ToolTipControl m_ToolTip = new ToolTipControl();
            m_ToolTip.Caption = wrapper.Caption;
            m_ToolTip.Text = str;
            ToolTipService.SetToolTip(this, m_ToolTip);
        }
            public TooltipController(PivotGridControl pivotGrid)
            {
                if (pivotGrid == null)
                    throw new ArgumentNullException("pivotGrid");
                PivotGrid = pivotGrid;

                pivotGrid.MouseEnter += new MouseEventHandler(pivotGrid_MouseEnter);
                pivotGrid.MouseLeave += new MouseEventHandler(pivotGrid_MouseLeave);
                pivotGrid.MouseMove += new MouseEventHandler(pivotGrid_MouseMove);

                m_AutoHideTimer = new Storyboard();
                m_AutoHideTimer.Duration = new Duration(new TimeSpan(0, 0, 0, 5, 0));
                m_AutoHideTimer.Completed += new EventHandler(m_AutoHideTimer_Completed);
                //LayoutRoot.Resources.Add("m_Refresh_Timer", m_Refresh_Timer);

                m_TooltipTimer = new Storyboard();
                m_TooltipTimer.Duration = new Duration(new TimeSpan(0, 0, 0, 1, 0));
                m_TooltipTimer.Completed += new EventHandler(m_TooltipTimer_Completed);

                m_ToolTipContent = new ToolTipControl();

                m_ToolTip = new ToolTip();
                m_ToolTip.Content = m_ToolTipContent;
                m_ToolTip.Padding = new Thickness(0);
                m_ToolTip.Opened += new RoutedEventHandler(m_ToolTip_Opened);
                m_ToolTip.Closed += new RoutedEventHandler(m_ToolTip_Closed);

                //m_ToolTip.VerticalOffset = 10;
                //m_ToolTip.HorizontalOffset = 10;
            }