Changes

Property Direct Edit (Client)

781 bytes added, 09:10, 9 August 2021
<tabs>
<tab name="UWP">
They are accessible as DataTemplates from the TemplateService UBIKThemes.xaml (use the [[Developer_Mode]] to see where this is availablefind the default copy) and the syntax in XAML is <code>{Binding TemplateService[StaticResource TEMPLATE_NAME]}</code>. Just like other such templates, they can be customized by providing your own TEMPLATE_NAMEoverriding the DataTemplates with respective keys in UBIKThemes.xaml files.
</tab>
<tab name="Xamarin">
They are accessible as DataTemplates from UBIKThemes.xamlx and the syntax in XAML is <code>{DynamicResource TEMPLATE_NAME}</code>. Just like such templates, they can be customized by providing your own DataTemplate resources (with the names keys of TEMPLATE_NAME) in UBIKThemes.xamlx.
</tab>
</tabs>
* String/Text: named as UBIKPropertyDirectItemString.
* Integer: named as UBIKPropertyDirectItemInt.
* Double: named as UBIKPropertyDirectItemDouble.
* Boolean: named as UBIKPropertyDirectItemBool.
 
[[Category:Client|Property Direct Edit (Client)]]
[[Category:Version 4.0|Property Direct Edit (Client)]]
[[Category:WinX|Property Direct Edit (Client)]]
[[Category:Xamarin|Property Direct Edit (Client)]]
== PropertyViewModel ==
This is used in a ListView-like control where item templates should be specified, in this case property item templates specifically. It determines the different DataTemplates to be used for direct editing PropertyViewModels according to their property types. For types that have default {{UBIK}} direct editing support, the template names follow the pattern of "UBIKPropertyDirectItemXXX" where XXX is the type name, e.g. String, DateTime, List, etc.
The selector also allows you to optionally specify a For types that do not come with default direct editing support, the selector uses the "UBIKPropertyItem" template in which editor dialogs are shown instead. <tabs><tab name so that ="UWP">Namespace <code>xmlns:tpl="using:UBIK.WinX.Templates"</code></tab> <tab name="Xamarin">Namespace <code>xmlns:resources="clr-namespace:UBIK.CPL.Resources;assembly=UBIK.CPL"</code></tab></tabs> === TaskPropertyTemplateSelector === By default, [[MRO_Objects_(Client)#Task|MRO tasks]] have direct editing enabled for their task related properties in the "UBIKTaskItem" template is . This template selector determines the different DataTemplates to be used for those direct editing PropertyViewModels according to their property types. For types that have default {{UBIK}} considers direct editing unavailablesupport, the template names follow the pattern of "UBIKTaskPropertyXXX" where XXX is the type name, e. The g. String, DateTime, List, etc. For types that do not come with default value is direct editing support, the selector uses the "UBIKPropertyItemUBIKTaskProperty" if left unspecifiedtemplate in which editor dialogs are shown instead.
<tabs>