Select to view content in your preferred language

FeatureDataGrid Hover

723
1
Jump to solution
07-09-2012 01:29 PM
ChristineZeller
Occasional Contributor
I'm using the example http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#FeatureDataGrid

Basically I love the fact if you hover over a feature on the map (in the example it is counties so if you hover over San Diego) the record in the table becomes slightly highlighted.  Unfortunately if the record is not in view the table does not auto adjust to place it in view.  I was wondering if there was a way to do this (similar to when you select a county but just do it for hover).

Thanks
Christine
0 Kudos
1 Solution

Accepted Solutions
PreetiMaske
Esri Regular Contributor
Actually you can do it. I haven't tested it but should work.

Subscribe to MouseEnter="FeatureLayer_MouseEnter" 

private void FeatureLayer_MouseEnter(object sender, GraphicMouseEventArgs e)
    {
      MyDataGrid.ScrollIntoView(e.Graphic,null);
    }

View solution in original post

0 Kudos
1 Reply
PreetiMaske
Esri Regular Contributor
Actually you can do it. I haven't tested it but should work.

Subscribe to MouseEnter="FeatureLayer_MouseEnter" 

private void FeatureLayer_MouseEnter(object sender, GraphicMouseEventArgs e)
    {
      MyDataGrid.ScrollIntoView(e.Graphic,null);
    }
0 Kudos