Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
430
Notificaiton zone about country
posted

Hi,


I'm trying to display a notification area when the mouse is over a country to add some informations about it. But I have not found a solution. Anyone can helps me?

 

Thank you

Parents
No Data
Reply
  • 2505
    Offline posted

    Hi heni86_2003,

    You could try the following approach.
    XAML:
        <Grid x:Name="LayoutRoot" Background="White">
            <Grid.RowDefinitions>
                <RowDefinition Height="400"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
           
            <ListBox x:Name="lstHoveredElement" Height="250" Width="400" Grid.Row="0"/>

            <igMap:XamMap x:Name="XamMap1" ElementHover="XamMap1_ElementHover" Grid.Row="1">
                <igMap:XamMap.Layers>
                    <igMap:MapLayer x:Name="Europe" Brushes="Red Blue Green Yellow Orange" FillMode="RandomSelect">
                        <igMap:MapLayer.Reader>
                            <igMap:ShapeFileReader Uri="Shapefiles/europe/europe" DataMapping="Name=CNTRY_NAME; Caption=CNTRY_NAME; ToolTip=CURR_TYPE"/>
                        </igMap:MapLayer.Reader>
                    </igMap:MapLayer>
                </igMap:XamMap.Layers>
            </igMap:XamMap>
        </Grid>

    CB:
            private void XamMap1_ElementHover(object sender, Infragistics.Controls.Maps.MapElementHoverEventArgs e)
            {
                this.lstHoveredElement.Items.Add(String.Format("The hovered element is: {0}.", e.Element.Caption));
            }

    Hope that helps,
    Milana Zhileva

Children
No Data