-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[6.5][Migration] Tutorial how to migrate Xamarin.Android to Tizen
- Loading branch information
Patryk Kaczmarek
committed
Dec 14, 2021
1 parent
1d50333
commit 0f4af7e
Showing
7 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
docs/application/dotnet/guides/migration/migrate-xaml-android.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Migrate Xamarin.Android App to Xamarin.Tizen | ||
|
||
|
||
|
||
## Related information | ||
- Dependencies | ||
- Tizen 6.5 and Higher |
52 changes: 52 additions & 0 deletions
52
docs/application/dotnet/guides/migration/migrate-xaml-forms.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Migrate Xamarin.Forms App to NUI Xaml | ||
|
||
The process for migrating a Xamarin.Forms app to Xmarin.Tizen is expected to be: | ||
|
||
1. Create empty NUI Xaml App | ||
2. Update namespaces and declared assemblies | ||
3. Convert elements | ||
3. Build and fix any issues | ||
4. Run the converted app and verify that is functions correctly. | ||
|
||
## Migration process | ||
|
||
### Create empty NUI Xaml App | ||
|
||
Follow [Get-Started](../user-interface/nui/xaml/get-started-xaml.md) to create empty Tizen NUI XAML App | ||
|
||
### Update namespaces and declared assembiles | ||
|
||
| Old namespace and assembly | New namespace and assembly | | ||
| ------------------------------------ | ---------------------------------------- | | ||
| xmlns="http://zamarin.com/schemas/2014/forms | xmlns="http://tizen.org/Tizen.NUI/2018/XAML" | | ||
| | xmlns:base="clr-namespace:Tizen.NUI.BaseComponets;assembly=Tizen.NUI" | | ||
| | xmlns:comp="clr-namespace:Tizen.NUI.Componets;assembly=Tizen.NUI.Components" | | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | xmlns:x="https://schemas.microsoft.com/winfx/2009/xaml" | | ||
|
||
### Convert elements | ||
|
||
Basing on sample app source code | ||
|
||
| Xamarin.Forms | Xmarin.Tizen | | ||
| ------------- | ------------ | | ||
|[XAML Forms Page](FormsXamlPage.xaml)|[XAML Tizen Page](TizenXamlPage.xaml) | | ||
|
||
#### XAML Source | ||
|
||
Below table shows UI elements form Xamarin.Forms and their replacement in NUI Xaml | ||
|
||
| Xamarin.Forms | NUI Xaml | | ||
| ------------- | ------------ | | ||
| Frame | View | | ||
| Label | TextLabel | | ||
| FontSize | PointSize | | ||
|
||
### Verification | ||
|
||
| Xamarin.Forms | NUI Xaml | | ||
| ------------- | ------------ | | ||
|<img src="./xaml-forms.png" width="300"> | <img src="./xaml-tizen.png" width="300"> | | ||
|
||
## Related information | ||
- Dependencies | ||
- Tizen 6.5 and Higher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Migration | ||
|
||
There is no need to rewrite your Xamarin.Forms and Xamarin.Andorid apps to run them on Tizen Platform. | ||
|
||
Xamarin.Forms App you can load directly to VS and run on your device, while Xamarin.Android specific Apps needs some code changes. | ||
|
||
- [Migration Xamarin.Forms](migrate-xaml-forms.md) | ||
|
||
- [Migrate Xamarin.Android](migrate-xaml-android.md) | ||
|
||
|
||
## Related information | ||
- Dependencies | ||
- Tizen 6.5 and Higher |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters