I have a FeatureDataForm coded like this.<esri2:FeatureDataForm x:Name="MyFeatureDataForm"
FeatureLayer="{Binding Path=Layers[AllAvailableFeatureLayer], ElementName=MyMap}"
IsEnabled="True"
IsReadOnly="False"
LabelPosition="Left"
/>
And code behind like this. private void AllAvailableFeatureLayer_MouseLeftButtonUp(object sender, GraphicMouseButtonEventArgs args)
{
FeatureLayer featureLayer = sender as FeatureLayer;
for (int i = 0; i < featureLayer.SelectionCount; i++)
featureLayer.SelectedGraphics.ToList().UnSelect();
args.Graphic.Select();
MyFeatureDataForm.GraphicSource = args.Graphic;
FeatureDataFormBorder.Visibility = Visibility.Visible;
MyPopup.IsOpen=true;
}
I would like to make the FeatureLayer in the DataForm dynamic so that it is set to the layer which triggered the mouse click. Would this be possible and what would be the syntax?Thanks