I have a work around with the field alias by creating the alias in ArcMap before publishing the service (although I would really like to know how to create an alias in the code for Feature Data Forms). I am working on having the text clear in the text boxes in the Feature Data form. I added got focus but I am getting the following error:"InvalidCastException was unhandled by user code - Unable to cast object of type 'ESRI.ArcGIS.Client.Toolkit.FeatureDataForm' to type 'System.Windows.Controls.TextBox'."Below is my code:xaml: <esri:FeatureDataForm x:Name="MyFeatureDataForm"
FeatureLayer="{Binding Path=Layers[BikeCount], ElementName=Map}"
IsReadOnly="False" LabelPosition="Left" GotFocus="TextBox_GotFocus"/>
C#: public void TextBox_GotFocus(object sender, RoutedEventArgs e)
{
TextBox tb = (TextBox)sender;
tb.Text = string.Empty;
tb.GotFocus -= TextBox_GotFocus;
}
I am not sure how to go about fixing this.