What is the difference between using "Binding with StaticResource" and using "StaticResource directly" in WPF What is the difference between using "Binding with StaticResource" and using "StaticResource directly" in WPF wpf wpf

What is the difference between using "Binding with StaticResource" and using "StaticResource directly" in WPF


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, namely DataSourceProviders.

Common base class and contract for DataSourceProvider objects, which are factories that execute some queries to produce a single object or a list of objects that you can use as binding source objects.

The object provided by the DataSourceProvider then is used instead of the DataSourceProvider itself.

In this specific case there hence should be no practical difference.