Select to view content in your preferred language

Layer.Credentials not a dependency property

596
1
02-23-2011 06:21 AM
AndrewWhite
Emerging Contributor
I get this error:

A 'Binding' cannot be set on the 'Credentials' property of type 'ArcGISTiledMapServiceLayer'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject.


when I try to bind a layer's credentials to CredentialCache.DefaultCredentials.  I've tried it several different ways, but here is one example:

<esri:ArcGISTiledMapServiceLayer Url="http://blahblahblah"
                                             Credentials="{Binding Source={StaticResource ResourceKey=MyCredentials}, Path=DefaultCredentials}"/>


Can I request that the Credentials property be changed to a DependencyProperty?
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
Thank you for your feedback. I will forward it to our dev lead for consideration in future versions of our API.
0 Kudos