Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of basic View ContentView in Xamarin XAML

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail the example analysis of the basic view ContentView in Xamarin XAML. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Base View ContentView

Views are used to render specific content, and different views are used depending on the content. Among them, the most commonly used view is the ContentView view, which is also called the content view.

1. Addition of content view

To make it easy for users to add ContentView views, both VS (Visual Studio) and XS (Xamarin Studio) provide special commands.

In the project created by VS, right-click the * (portable) project and select "add (D)" | "New item (w)" name in the pop-up shortcut menu, which will pop up the "add New item" dialog box and select the Cross-Platform option. At this time, we will see two options for creating ContentView, one for Forms View and the other for Forms Xaml View, as shown in figure 14.4.

In the project created by XS, right-click the project name under the project name, and select Add from the pop-up shortcut menu | New File... Command, the New File dialog box pops up, and we will see two options for creating ContentView, Forms ContentView, and the other is Forms Xaml ContentView, as shown in figure 14.5.

two。 Derivative relationship of content view

The ContentView page is derived from Layout and is also the parent of the Frame frame layout. The derived diagram is shown in figure 14.7.

Figure 14.7 derived diagram

This is the end of this article on "sample Analysis of the basic View ContentView in Xamarin XAML". 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, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report