<ListBox x:Name="Bookmarklistbox" ItemTemplate="{StaticResource bookmarkTemplate}" ItemsSource="{Binding categoryCollection}" >
</ListBox>
<DataTemplate x:Key="bookmarkTemplate">
<StackPanel>
<TextBlock Text="{Binding name}"/>
<Button Name="bookmarkbutton" />
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<esriBehaviors:ZoomToAction TargetName="Map">
<esriBehaviors:ZoomToAction.Geometry>
<esriGeometry:Envelope
XMin="{Binding XMin}" YMin="{Binding YMin}" XMax="{Binding XMax}" YMax="{Binding YMax}"/>
</esriBehaviors:ZoomToAction.Geometry>
</esriBehaviors:ZoomToAction>
</i:EventTrigger>
</i:Interaction.Triggers>
Unfortunately these Envelope properties (XMin, YMin, XMax, YMax) are not dependency properties that's why you cannot bind to them.
Jennifer
public static readonly DependencyProperty BindableXMaxProperty = DependencyProperty.Register( "BindableXMax", typeof(Double),
);
public double BindableXMax
{
get
{
return (Double)GetValue(BindableXMax);
}
set
{
this.XMax = value;
SetValue(BindableXMaxProperty, value);
}
}