Skip to content

Commit

Permalink
[6.5][Migration] Tutorial how to migrate Xamarin.Android to Tizen
Browse files Browse the repository at this point in the history
  • Loading branch information
Patryk Kaczmarek committed Oct 26, 2021
1 parent 9c45b96 commit ea3a16a
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/application/dotnet/guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,36 @@ Tizen.Wearable.CircularUI supports Tizen wearable-specific user interfaces and T
</div>
</div>
</div>
<div class="col col-md-3">
<div class="card card-infra card-list h-100">
<div class="card-body">
<p class="h3 card-title">Maigration to Xamarin.Tizen</p>
<div class="card-text">
<ul class="list-infra list-infra-arrow">
<li><a href="migration/migrate-xaml-android.md">Migrate Xamarin.Android</a></li>
</ul>
</div>
</div>
<div class="card-footer">
<a class="link-standalone" href="migration/overview.md">Learn more</a>
</div>
</div>
</div>
<div class="col col-md-3">
<div class="card card-infra card-list h-100">
<div class="card-body">
<p class="h3 card-title">Maigration to Xamarin.Tizen</p>
<div class="card-text">
<ul class="list-infra list-infra-arrow">
<li><a href="migration/migrate-xaml-forms.md">Migrate Xamarin.Forms</a></li>
</ul>
</div>
</div>
<div class="card-footer">
<a class="link-standalone" href="migration/overview.md">Learn more</a>
</div>
</div>
</div>
<div class="col col-md-3">
<div class="card card-infra card-list h-100">
<div class="card-body">
Expand Down
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 docs/application/dotnet/guides/migration/migrate-xaml-forms.md
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
14 changes: 14 additions & 0 deletions docs/application/dotnet/guides/migration/overview.md
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.
5 changes: 5 additions & 0 deletions docs/application/toc_all.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@
#### [Single Shot](/application/dotnet/guides/machine-learning/singleshot.md)
#### [Pipeline](/application/dotnet/guides/machine-learning/pipeline.md)

### Migration
#### [Overview](/application/dotnet/guides/migration/overview.md)
#### [Migrate Xamarin.Forms](/application/dotnet/guides/migration/migrate-xaml-forms.md)
#### [Migrate Xamarin.Android](/application/dotnet/guides/migration/migrate-xaml-android.md)

### Maps
#### [Overview](/application/dotnet/guides/maps/maps.md)
#### [Getting HERE Maps Credentials](/application/dotnet/guides/maps/here-credentials.md)
Expand Down

0 comments on commit ea3a16a

Please sign in to comment.