private void FeatureLayer_Initialized(object sender, System.EventArgs e)
{
FeatureLayer featureLayer = sender as FeatureLayer;
IEnumerable<Field> intandDoublefields =
from fld in featureLayer.LayerInfo.Fields
where fld.Type == Field.FieldType.Integer || fld.Type == Field.FieldType.Double
select fld;
if (intandDoublefields != null && intandDoublefields.Count() > 0)
{
ClassificationFieldListBox.ItemsSource = intandDoublefields;
ClassificationFieldListBox.SelectedIndex = 1;
NormalizationFieldListBox.ItemsSource = intandDoublefields;
NormalizationFieldListBox.SelectedIndex = -1;
RenderButton.IsEnabled = true;
}
}