AnsweredAssumed Answered

ArcGISLocalFeatureLayer Path set via app.config file or code-behind?

Question asked by keithgemeinhart on Oct 19, 2012
Latest reply on Oct 24, 2012 by MBranscomb-esristaff
I'd like to have the Path property for an ArcGISLocalFeatureLayer be a value that is not hard-coded. Is it possible to set the value in code-behind or somehow use a value from the app.config file directly in xaml to set it?

I tried binding to an app.config values using the following technique:
http://dean-o.blogspot.com/2009/10/wpf-binding-appconfig-settings-in-xaml.html
http://www.codearsenal.net/2012/03/accessing-appconfig-properties-from.html#.UIGz6NeaZ1o

But I get the following error ...
A 'Binding' cannot be set on the 'Path' property of type 'ArcGISLocalFeatureLayer'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject.

Outcomes