I wanna command bind to FeatureLayer, but not werking. I am using Prism library and Esri silverlght API. I read from prism document that Commands handle UI actions. Is the issue because FeatureLayer is not derived from Control?My code is folowing.
xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"
xmlns:cmd="clr-namespace:Infrastructure.Commands;assembly=Infrastructure"
xmlns:fcmd="clr-namespace:Infrastructure.Commands.FeatureLayerCommands;assembly=Infrastructure"
<esri:Map x:Name="MyMap"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
cmd:MouseClick.Command="{Binding Map_Click}"
cmd:SizeChange.Command="{Binding Size_Change}">
<esri:FeatureLayer ID="ff"
Url="http://domain/arcgis/rest/services/serv/MapServer/4"
Mode="OnDemand"
fcmd:FeatureLayerMouseEnter.Command="{Binding FeatureLayer_MouseEnter}"
/>
</esri:Map>
Map commands as following are working cmd:MouseClick.Command="{Binding Map_Click}" cmd:SizeChange.Command="{Binding Size_Change}"But feature layer command is not working and no error occuring. fcmd:FeatureLayerMouseEnter.Command="{Binding FeatureLayer_MouseEnter}" Is the problem about FeatureLayer is not a UI Control