Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 03.UIControls.md #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tutorial/en/03.UIControls.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# **Build MAUI control for AutoNavi map - Custom Controls**

We know that MAUI is a solution for developing cross-platform applications, and applications such as iOS, Android, Windows, macOS, Linux, Tizen, etc. can be developed directly with C#. Then in this framework, in addition to using the underlying custom UI controls, what if we want to use third-party controls such as AutoNavi maps? Next, I will introduce it to you.
We know that MAUI is a solution for developing cross-platform applications, and applications based on iOS, Android, Windows, macOS, Linux, Tizen, etc. can be developed directly with C#. In this framework, in addition to using the underlying custom UI controls, what shall we do when we want to use third-party controls such as AutoNavi maps? Now, I will introduce it to you.

If you haven't learned about native library bindings, you can go to the following links to learn related content:

Expand All @@ -12,7 +12,7 @@ https://github.com/kinfey/AMapMAUIControls/blob/main/tutorial/en/01.iOSBinding.m

https://github.com/kinfey/AMapMAUIControls/blob/main/tutorial/en/02.DroidBinding.md

In the above two examples, we learned to bind the native Aode's iOS / Android SDK, and also used .NET for iOS and .NET for Android to call. But using MAUI means changing the calling method, writing one-time multi-platform use. To achieve this effect, first look at the MAUI infrastructure.
In the above two examples, we learned how to bind the native Aode's iOS / Android SDK, and also used .NET for iOS and .NET for Android to call. But using MAUI means changing the calling method, writing one-time multi-platform use. To achieve this effect, first look at the MAUI infrastructure.
<br/>

<img src="./imgs/03/02.png"/>
Expand All @@ -26,7 +26,7 @@ In the preface, we also mentioned that MAUI uses the Handler mode to set the pla
<img src="./imgs/03/03.png"/>
<br/>

We need to create a structure as shown above, we need to add a shared file AMap.shared.cs for AMap, this file AMapHandler succeeds ViewHandler.
We need to create a structure as shown above, and add a shared file AMap.shared.cs for AMap. This file AMapHandler succeeds ViewHandler.

```csharp

Expand Down Expand Up @@ -274,7 +274,7 @@ Choose to compile and run to see that the AutoNavi map can finally run in the MA
## **Summary**
<br/>

For many people, or they are initially exposed to MAUI, in fact, there is still a long way to go to do cross-platform well. I hope that through this series of articles, I can give some help to some third-party manufacturers and developers, and provide MAUI support as soon as possible. Only in this way can this new technology be injected with vitality.
MAUI are probably new for most people. In fact, there is a long way to go to do cross-platform well. I hope that through this series of articles, I can provide some useful information to third-party manufacturers and developers on MAUI support as soon as possible. With more and more people get familar with MAUI and make use of it, this new technology will have more vitality.


### **More**
Expand Down