How can I control the placement of a Symbol's captions?
Currently with a 'bubble' symbol the caption is appearing over the symbol I want it to display above by default.
Further for some of my applications I want to one piece a caption above the symbol and a value below the symbol, is this possible?
Hi,
Just checking if the latest reply helped you out and if you require any further assistance on the matter.
Sincerely,DimiDeveloper Support Engineer, MCPD Infragistics, Inc.www.infragistics.com/support
Hi dmurraylaing
Please take a look at these forum posts: http://community.infragistics.com/forums/p/43456/239043.aspx#239043 and
http://community.infragistics.com/forums/p/52090/271465.aspx#271465
Regards,
Ivan Kotev
Can I bind to custom properties on the map element. The text I need to display below my symbol is not a simple number so I cannot use the Value property which is a just a double.
Also I need to be able to apply this to a symbol element will the same approach work, how can I ensure the text appears above the symbol graphic.
Hi dmurraylaing,A sample approach to achieve this, using a picture as a symbol, is the following: <igMap:XamMap x:Name="xamMap1"> <igMap:XamMap.Layers> <igMap:MapLayer x:Name="MapLayer" IsAutoWorldRect="True"> <igMap:MapLayer.Reader> <igMap:ShapeFileReader Uri="Shapefiles/world/world" DataMapping="Caption=CNTRY_NAME; Value=POP_CNTRY"/> </igMap:MapLayer.Reader> <igMap:MapLayer.ValueTemplate> <DataTemplate> <Grid> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> <RowDefinition/> </Grid.RowDefinitions> <TextBlock Text="{Binding Caption}" Grid.Row="0"/> <Image Source="Images/pizza.jpg" Height="50" Width="50" Grid.Row="1"/> <TextBlock Text="{Binding Value}" Grid.Row="2"/> </Grid> </DataTemplate> </igMap:MapLayer.ValueTemplate> </igMap:MapLayer> </igMap:XamMap.Layers> </igMap:XamMap> Hope that helps,Milana Zhileva