Changes

UBIK Templates

432 bytes added, 17 April
/* ChildAreaTemplateSelector (UWP) / ChildAreaTemplateConverter (Xamarin) */
=== ChildAreaTemplateSelector (UWP) / ChildAreaTemplateConverter (Xamarin) ===
This returns a fitting template for a given context object according to the following rules:
<tabs>
<tab name="UWP">
The ChildAreaTemplateSelector returns a fitting template for a given context object according to the following rules:
* If the context object is classified with the [[SYSCLS_CHILDAREATEMPLATE|ChildAreaTemplate Classification]] and carries a valid child area template name:
** Tries to return a custom template with the name of CustomTemplateName + Suffix;
** If not found, returns an [[Developer_Mode#Errors|error template ]] (strict policy on) or goes to the next rule 2 (strict policy off).
* Otherwise:
** Tries to return a custom template with the name ''UBIKChildArea'' + Suffix;
** If not found, it will try to find the default template with the given name;** If that's not found, it returns an [[Developer_Mode#Errors|error template]].
</tab>
<tab name="Xamarin">
The ChildAreaTemplateConverter returns a fitting child area template for a given ContentViewModel if it's * If the context object is classified with the [[SYSCLS_CHILDAREATEMPLATE|ChildAreaTemplate Classification]].and carries a valid child area template name:* Returns null if * Tries to return a custom template with the given ViewModel is name of CustomTemplateName;** If that's not a ContentViewModelfound, it returns an [[Developer_Mode#Errors|error template]].* Returns Otherwise:** Tries to return a default custom template named with the name ''UBIKChildArea'' if no specific ;** If not found, it will try to find the default template is with the given name;** If that's not found, it returns an [[Developer_Mode#Errors|error template]].
</tab>
</tabs>
 
[[Category:Client|UBIK Templates]]
[[Category:UBIK|UBIK Templates]]
[[Category:WinX|UBIK Templates]]
=== ContentAreaTemplateSelector (UWP) / ContentAreaTemplateConverter (Xamarin) ===
337
edits