Difference between revisions of "Version 3.6 (WinX)"
Line 13: | Line 13: | ||
= Build History = | = Build History = | ||
+ | |||
+ | = Xaml Changes = | ||
+ | <br /> | ||
+ | We have made some improvements to make some bindings in Xaml code easier and more efficient. Some changes to your existing Xaml customizings might be necessary. Please refer to each section to see if the change is mandatory or not. | ||
+ | |||
+ | == Binding to TemplateService and the templates == | ||
+ | This change is '''not mandatory''' and your existing Xamls will still work. We do recommend updating them, though. | ||
+ | |||
+ | Previously the TemplateService (the one providing access to all customizable templates) was only available on certain views (e.g. pages, dialogs, etc.). And the binding to it could only be done using named element like | ||
+ | :<source lang = "xml"> | ||
+ | <ContentControl ContentTemplate="{Binding ElementName=contentPage, Path=TemplateService.UBIKChildPageActionTemplate}" /> | ||
+ | </source> | ||
+ | It is now made accessible from all view models (you can use the [[Developer_Mode|developer mode]] to check its availability). Also, you can now use the exact names of the template files as indexers for binding to those templates. Therefore, the binding can be changed to something like | ||
+ | :<source lang = "xml"> | ||
+ | <ContentControl ContentTemplate="{Binding TemplateService[UBIKChildPageAction]}" /> | ||
+ | </source> | ||
+ | |||
<headertabs /> | <headertabs /> |