Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GeoMap"/> class.
        /// </summary>
        public GeoMap()
        {
            Child = WpfBase;

            WpfBase.LandClick += (o, point) =>
            {
                if (LandClick != null)
                {
                    LandClick.Invoke(o, point);
                }
            };
        }
Esempio n. 2
0
        private void POnMouseDown(object sender, MouseButtonEventArgs mouseButtonEventArgs)
        {
            var land = Lands.Values.FirstOrDefault(x => x.Shape == sender);

            if (land == null)
            {
                return;
            }

            if (LandClick != null)
            {
                LandClick.Invoke(sender, land);
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GeoMap"/> class.
        /// </summary>
        public GeoMap()
        {
            Child = WpfBase;

            //workaround for windows 7 focus issue
            //https://github.com/beto-rodriguez/Live-Charts/issues/515
            HostContainer.MouseEnter += (sender, args) =>
            {
                Focus();
            };

            WpfBase.LandClick += (o, point) =>
            {
                if (LandClick != null)
                {
                    LandClick.Invoke(o, point);
                }
            };
        }