Jump to: navigation, search

Changes


Custom View (Client)

6 bytes added, Thursday at 13:11
== Basic concept ==
Using the new DisplayViewCommand, you can display a dialog (UWP) / page (XamarinMobile) with the UI defined in a custom named XAML template. Both the template name and the data context to be used in that template should be supplied to the command using the KeyValueList structure.
* TemplateName: Name of the template the client should look for to display in the custom view;
* TemplateDataContext: Data context any binding should work with in the custom view.
</tab>
<tab name="Mobile(Xamarin)">
<source lang = "xml">
<Button
=== In the custom view ===
For the example code shown above, the following content should be placed inside a custom view named SomeRandomView.xaml (UWP) or SomeRandomView.xamlx (XamarinMobile).
<source lang = "xml">
<SomeTypeOfTextControl
[[Category:Client|Custom View (Client)]]
[[Category:Mobile|Custom View (Client)]]
[[Category:Version 1.1|Custom View (Client)]]
[[Category:Version 3.8|Custom View (Client)]]
[[Category:WinX|Custom View (Client)]]
[[Category:XAML|Custom View (Client)]]
[[Category:Mobile|Custom View (Client)]]
557
edits