I have created a mycustomItemsPanel in App.Resources
<Application.Resources>
<ItemsPanelTemplate x:Key="mycustomItemsPanel">
.... Some code here
</ItemsPanelTemplate>
</Application.Resources>
and providing this to a UIControl this way
<.... ItemsPanel="{StaticResource mycustomItemsPanel}" />
But I came to know that this can be provided as
<.... ItemsPanel="Binding Source={StaticResource mycustomItemsPanel}}" />
What is the difference between these?
For one thing the binding will only be able on dependency properties, another would be that some objects behave differently when assigned as a
Binding.Source, namelyDataSourceProviders.The object provided by the
DataSourceProviderthen is used instead of theDataSourceProvideritself.In this specific case there hence should be no practical difference.