Esempio n. 1
0
        private void HandleMouseDown(object sender, MouseEventArgs e)
        {
            var hitTester = new LegendHitTester(_legend, _legendPanel);
            var t         = hitTester.HitTest(e.Location);

            Debug.WriteLine(t.ToString());
        }
Esempio n. 2
0
        protected override void OnMouseDown(MouseEventArgs e)
        {
            var hitTester = new LegendHitTester(_legend, _legendPanel);
            var t         = hitTester.HitTest(e.Location);

            switch (t.HitTestArea)
            {
            case HitTestArea.Label:
            case HitTestArea.Symbol:
            default:
                Debug.WriteLine(t.ToString());
                break;
            }

            base.OnMouseDown(e);
        }