コード例 #1
0
        internal void UpdateToolTipStyle()
        {
            Point relativeLocation = at.TranslatePoint(new Point(0, 0), this.AssociatedObject);

            if (relativeLocation.X < 0)
            {
                at.Placement          = Dock.Right;
                apUserToolTip.Padding = new Thickness(0, 0, 10, 0);
            }
            else if (relativeLocation.X > 0)
            {
                at.Placement          = Dock.Left;
                apUserToolTip.Padding = new Thickness(10, 0, 0, 0);
            }
            //if (relativeLocation.Y > 0)
            //{
            //    at.Placement = Dock.Top;
            //    apUserToolTip.Padding = new Thickness(0, 10, 0, 0);
            //}
            //else if (relativeLocation.Y < 0)
            //{
            //    at.Placement = Dock.Bottom;
            //    apUserToolTip.Padding = new Thickness(0, 0, 0, 10);
            //}
        }
コード例 #2
0
        public void UpdateToolTipStyle()
        {
            Point relativeLocation = at.TranslatePoint(new Point(0, 0), this);

            if (relativeLocation.X < 0)
            {
                at.Placement           = Dock.Right;
                apErrorToolTip.Padding = new Thickness(0, 0, 10, 0);
            }
            else if (relativeLocation.X > 0)
            {
                at.Placement           = Dock.Left;
                apErrorToolTip.Padding = new Thickness(10, 0, 0, 0);
            }
        }
コード例 #3
0
        public void UpdateToolTipStyle()
        {
            Point relativeLocation = at.TranslatePoint(new Point(0, 0), this.AssociatedObject);

            if (relativeLocation.Y > 0)
            {
                at.Placement           = Dock.Top;
                apErrorToolTip.Padding = new Thickness(0, 10, 0, 0);
            }
            else if (relativeLocation.Y < 0)
            {
                at.Placement           = Dock.Bottom;
                apErrorToolTip.Padding = new Thickness(0, 0, 0, 10);
            }
        }