Skip to content

Commit

Permalink
Remove xrefs (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbritch committed Mar 18, 2024
1 parent 81b3744 commit d20b0d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 8.0/PlatformIntegration/NativeEmbeddingDemo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ urlFragment: platformintegration-nativeembedding

# Native embedding

Typically, a .NET Multi-platform App UI (.NET MAUI) app includes pages that contain layouts, such as <xref:Microsoft.Maui.Controls.Grid>, and layouts that contain views, such as <xref:Microsoft.Maui.Controls.Button>. Pages, layouts, and views all derive from <xref:Microsoft.Maui.Controls.Element>. Native embedding enables any .NET MAUI controls that derive from <xref:Microsoft.Maui.Controls.Element> to be consumed in .NET Android, .NET iOS, .NET Mac Catalyst, and WinUI native apps.
Typically, a .NET Multi-platform App UI (.NET MAUI) app includes pages that contain layouts, such as `Grid`, and layouts that contain views, such as `Button`. Pages, layouts, and views all derive from `Element`. Native embedding enables any .NET MAUI controls that derive from `Element` to be consumed in .NET Android, .NET iOS, .NET Mac Catalyst, and WinUI native apps.

The process for consuming a .NET MAUI control in a native app is as follows:

1. Create extension methods to bootstrap your native embedded app.
1. Create a .NET MAUI single project that contains your .NET MAUI code and any dependencies.
1. Create a .NET MAUI single project that contains your .NET MAUI UI and any dependencies.
1. Create a native app and enable .NET MAUI support in it.
1. Initialize .NET MAUI by calling the <xref:Microsoft.Maui.Embedding.AppHostBuilderExtensions.UseMauiEmbedding%2A> method.
1. Create an instance of the .NET MAUI control and convert it to the appropriate native type with the `ToPlatformEmbedded` extension method.
1. Initialize .NET MAUI by calling the `UseMauiEmbedding` extension method.
1. Create the .NET MAUI UI and convert it to the appropriate native type with the `ToPlatformEmbedding` extension method.

For more information about the sample see [Native embedding](https://learn.microsoft.com/dotnet/maui/platform-integration/native-embedding).

0 comments on commit d20b0d8

Please sign in to comment.