Select to view content in your preferred language

How to Bind to geometry in listbox

700
2
Jump to solution
08-19-2012 05:37 PM
MattMiley
Deactivated User
Is is possible to bind to a graphic's geometry in the xaml?

     <TextBlock  Text="Job # " FontSize="44" />                             <TextBlock  Text="{Binding Attributes[OBJECTID]}" FontSize="44" />                             <TextBlock  Text="XMax" FontSize="44" />  <!These two dont work!>                             <TextBlock  Text="{Binding Extent[XMax]}" FontSize="44" />                             <TextBlock  Text="{Binding Geography[Extent]}" FontSize="44" />


My overall goal is to have a listbox with icons of each point that are images that have image.sources of a bunch of Exported Map Images.  something like this http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapSe... But obviously different for each one and each one being an image of that point. I just think data binding would be the best way to do this.
0 Kudos
1 Solution

Accepted Solutions
DominiqueBroux
Esri Frequent Contributor
<!These two dont work!>
<TextBlock Text="{Binding Extent[XMax]}" FontSize="44" />
<TextBlock Text="{Binding Geography[Extent]}" FontSize="44" />


To get the geometry extent as text in your list box, you can use :
<TextBlock Text="{Binding Geometry.Extent}" FontSize="44" />

That being said I am not sure to understand what you need to do, so not sure that helps.

View solution in original post

0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
<!These two dont work!>
<TextBlock Text="{Binding Extent[XMax]}" FontSize="44" />
<TextBlock Text="{Binding Geography[Extent]}" FontSize="44" />


To get the geometry extent as text in your list box, you can use :
<TextBlock Text="{Binding Geometry.Extent}" FontSize="44" />

That being said I am not sure to understand what you need to do, so not sure that helps.
0 Kudos
MattMiley
Deactivated User

That being said I am not sure to understand what you need to do, so not sure that helps.


Thanks! I can take it from there!
0 Kudos