Changes

XAML

905 bytes added, 07:48, 2 May 2022
/* Miscellaneous */
</tab>
=== UBIKContentControl ===In UWP XAML, one often uses a <code><ContentControl ... ContentTemplateSelector="{StaticResource TaskPropertyTemplateSelector}" /></code> to choose different templates depending on the binding context.However, it seems to have its limit, namely the template selection happens only once at the beginning. In other words, the template will not change even when the binding context later changes and another template would be the choice.For such scenarios, we have created a UBIKContentControl. See the example below.<tabs><tab name="XamarinUWP">Not yet availableWhen the IsLocked status changes on the ContentViewModel, the task direct edit template will be reselected.<source lang = "xml">xmlns:controls="using:UBIK.WinX.Controls"<controls:UBIKContentControl Content="{Binding MROViewModel}" ContentTemplateSelector="{StaticResource TaskPropertyTemplateSelector}" TemplateReselectTrigger="{Binding IsLocked}" /></source>
</tab>
</tabs>