How to implement template View TemplatedView in Xamarin XAML language
This article is about how to implement template view TemplatedView in the Xamarin XAML language. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Template View TemplatedView
As opposed to the template page is TemplatedView, which is called template view, and its function is similar to the template page. It is also used to display the control template, but it is more flexible than the template page. TemplatedView provides the ControlTemplate property to correlate the control template to show the corresponding interface.
[example 14-6:TemplatedViewDemo] the following will use the template view to display the control template and switch the template. The specific steps are as follows:
(1) Open the App.xaml file, write the code, and build the control template at the application level, as follows:
In this code, we build two control templates, one for the ChineseTemplate control template and the other for the EnglishTemplate control template.
Thank you for reading! This is the end of this article on "how to implement template View TemplatedView in Xamarin XAML language". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!