Changes

UBIK Templates

68 bytes added, 18 April
/* PropertyEditorItemTemplateSelector (UWP) / EditTemplateConverter (Xamarin) */
=== PropertyEditorItemTemplateSelector (UWP) / EditTemplateConverter (Xamarin) ===
This returns a fitting template for a given context property according to the following rules:
<tabs>
<tab name="UWP">
The PropertyEditorItemTemplateSelector dynamically selects a fitting DataTemplate based on the type of the given property.* Returns a ''UBIKEditBool'' template if the MetaProperty type of the given Property is of type Bool.* Returns a ''UBIKEditString'' template if the MetaProperty type of the given Property is of type String.* Returns a ''UBIKEditInt'' template if the MetaProperty type of the given Property is of type Int.* Returns a ''UBIKEditDouble'' template if the MetaProperty type of the given Property is of type Double.* Returns a ''UBIKEditDateTime'' template if the MetaProperty type of the given Property is of type DateTime.* Returns a ''UBIKEditGuid'' template if the MetaProperty type of the given Property is of type Guid.* Returns a ''UBIKEditSignature'' template if the MetaProperty type of the given Property is of type Signature.* Returns a ''UBIKEditChart'' template if the MetaProperty type of the given Property is of type Chart.{{Hint|Even though UBIK has an editor for GeoData and FileReference type, its UI is not customizable and therefore the selector is not relevant for them.}}{{Hint|UBIK doesn't show editors for XML, ByteStream, Geography, and Undefined type, therefore the selector is not relevant for them.}} 
</tab>
<tab name="Xamarin">
The EditTemplateConverter returns a fitting EditTemplate from a Property item.* Returns null if the current editor’s PropertyViewModel instance is null.* Returns a "''UBIKEditBool" '' template if the given PropertyItem Property is of type Bool.* Returns a "''UBIKEditString" '' template if the given PropertyItem Property is of type String.* Returns a "''UBIKEditInt" '' template if the given PropertyItem Property is of type Int.* Returns a "''UBIKEditDouble" '' template if the given PropertyItem Property is of type Double.* Returns a "''UBIKEditDateTime" '' template if the given PropertyItem Property is of type DateTime.* Returns a "''UBIKEditGuid" '' template if the given PropertyItem Property is of type Guid.* Returns a "''UBIKEditGeo" '' template if the given PropertyItem Property is of type GeoData.* Returns a "''UBIKEditSignature" '' template if the given PropertyItem Property is of type Signature.* Returns a "UBIKEditNotSupported" an [[Developer_Mode#Errors|error template]] if the given PropertyItem Property is of type XML, ByteStream, Geography, Undefined or FileReference.* Otherwise, it returns null if no specific template is foundor Undefined.
</tab>
</tabs>
{{Hint|To get an overview of how template selectors work, please refer to [[UBIK_Templates#Template_loading_mechanism|Template loading mechanism]].}}
{{UnderConstructionEnd}}
337
edits