Resources
Identified by unique key, implicit or explicit
[x:Key directive]
.Can be created/overwritten in the
Resources
section for a FrameworkElement/FrameworkContentElement or Application. Can also be defined in Resource Dictionaries and merged with Application resources.Recommended creation at the minimum level possible.
Binding.Source
uses them withStaticResource
orDynamicResource
.
Types with default constructor
Can be instantiated directly in the
Resources
section. Their public properties can be set in XAML which can also be a source for binding
XmlDataProvider
Enables declarative access to XML node tree from the inline XML data, XML data file, or
XmlDocument
. It is the slower among the two data providers
ObjectDataProvider
Allows instantiation using specific constructor. Can also use any method of the type for data with specific parameters. The parameters can also be used as a binding source.
Binding.BindsDirectlyToSource
: When true, specifies that the binding path is relative to theData
property.