Resource lookup algorithms
Since a style family can be part of a hierarchy, when StyleFamilyPath (such as, Infor/Lightness) is used in the below algorithms, the resource lookup algorithm finds the resource in each one of those style families, from bottom and up. For example, Lightness would be checked first and then Infor if the resource was not found in Lightness.
User-defined styles
A user-defined style is looked up in this order:
- Locale / StyleFamilyPath / UserDefinedStyle
- StyleFamilyPath / UserDefinedStyle
Assets
An asset is requested using a path, ResourcePath; for example,
Images/42.png
. An asset in the
Assets
directory is looked up in this order:
- Locale / StyleFamilyPath / ResourcePath
- Locale / ResourcePath
- StyleFamilyPath / ResourcePath
- ResourcePath