Skip to content

Commit 0f4af7e

Browse files
author
Patryk Kaczmarek
committed
[6.5][Migration] Tutorial how to migrate Xamarin.Android to Tizen
1 parent 1d50333 commit 0f4af7e

File tree

7 files changed

+108
-0
lines changed

7 files changed

+108
-0
lines changed

docs/application/dotnet/guides/index.md

+30
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,36 @@ Tizen.Wearable.CircularUI supports Tizen wearable-specific user interfaces and T
224224
</div>
225225
</div>
226226
</div>
227+
<div class="col col-md-3">
228+
<div class="card card-infra card-list h-100">
229+
<div class="card-body">
230+
<p class="h3 card-title">Maigration to Xamarin.Tizen</p>
231+
<div class="card-text">
232+
<ul class="list-infra list-infra-arrow">
233+
<li><a href="migration/migrate-xaml-android.md">Migrate Xamarin.Android</a></li>
234+
</ul>
235+
</div>
236+
</div>
237+
<div class="card-footer">
238+
<a class="link-standalone" href="migration/overview.md">Learn more</a>
239+
</div>
240+
</div>
241+
</div>
242+
<div class="col col-md-3">
243+
<div class="card card-infra card-list h-100">
244+
<div class="card-body">
245+
<p class="h3 card-title">Migration to Xamarin.Tizen</p>
246+
<div class="card-text">
247+
<ul class="list-infra list-infra-arrow">
248+
<li><a href="migration/migrate-xaml-forms.md">Migrate Xamarin.Forms</a></li>
249+
</ul>
250+
</div>
251+
</div>
252+
<div class="card-footer">
253+
<a class="link-standalone" href="migration/overview.md">Learn more</a>
254+
</div>
255+
</div>
256+
</div>
227257
<div class="col col-md-3">
228258
<div class="card card-infra card-list h-100">
229259
<div class="card-body">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Migrate Xamarin.Android App to Xamarin.Tizen
2+
3+
4+
5+
## Related information
6+
- Dependencies
7+
- Tizen 6.5 and Higher
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Migrate Xamarin.Forms App to NUI Xaml
2+
3+
The process for migrating a Xamarin.Forms app to Xmarin.Tizen is expected to be:
4+
5+
1. Create empty NUI Xaml App
6+
2. Update namespaces and declared assemblies
7+
3. Convert elements
8+
3. Build and fix any issues
9+
4. Run the converted app and verify that is functions correctly.
10+
11+
## Migration process
12+
13+
### Create empty NUI Xaml App
14+
15+
Follow [Get-Started](../user-interface/nui/xaml/get-started-xaml.md) to create empty Tizen NUI XAML App
16+
17+
### Update namespaces and declared assembiles
18+
19+
| Old namespace and assembly | New namespace and assembly |
20+
| ------------------------------------ | ---------------------------------------- |
21+
| xmlns="http://zamarin.com/schemas/2014/forms | xmlns="http://tizen.org/Tizen.NUI/2018/XAML" |
22+
| | xmlns:base="clr-namespace:Tizen.NUI.BaseComponets;assembly=Tizen.NUI" |
23+
| | xmlns:comp="clr-namespace:Tizen.NUI.Componets;assembly=Tizen.NUI.Components" |
24+
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | xmlns:x="https://schemas.microsoft.com/winfx/2009/xaml" |
25+
26+
### Convert elements
27+
28+
Basing on sample app source code
29+
30+
| Xamarin.Forms | Xmarin.Tizen |
31+
| ------------- | ------------ |
32+
|[XAML Forms Page](FormsXamlPage.xaml)|[XAML Tizen Page](TizenXamlPage.xaml) |
33+
34+
#### XAML Source
35+
36+
Below table shows UI elements form Xamarin.Forms and their replacement in NUI Xaml
37+
38+
| Xamarin.Forms | NUI Xaml |
39+
| ------------- | ------------ |
40+
| Frame | View |
41+
| Label | TextLabel |
42+
| FontSize | PointSize |
43+
44+
### Verification
45+
46+
| Xamarin.Forms | NUI Xaml |
47+
| ------------- | ------------ |
48+
|<img src="./xaml-forms.png" width="300"> | <img src="./xaml-tizen.png" width="300"> |
49+
50+
## Related information
51+
- Dependencies
52+
- Tizen 6.5 and Higher
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Migration
2+
3+
There is no need to rewrite your Xamarin.Forms and Xamarin.Andorid apps to run them on Tizen Platform.
4+
5+
Xamarin.Forms App you can load directly to VS and run on your device, while Xamarin.Android specific Apps needs some code changes.
6+
7+
- [Migration Xamarin.Forms](migrate-xaml-forms.md)
8+
9+
- [Migrate Xamarin.Android](migrate-xaml-android.md)
10+
11+
12+
## Related information
13+
- Dependencies
14+
- Tizen 6.5 and Higher
Loading
Loading

docs/application/toc_all.md

+5
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@
124124
#### [Single Shot](/application/dotnet/guides/machine-learning/singleshot.md)
125125
#### [Pipeline](/application/dotnet/guides/machine-learning/pipeline.md)
126126

127+
### Migration
128+
#### [Overview](/application/dotnet/guides/migration/overview.md)
129+
#### [Migrate Xamarin.Forms](/application/dotnet/guides/migration/migrate-xaml-forms.md)
130+
#### [Migrate Xamarin.Android](/application/dotnet/guides/migration/migrate-xaml-android.md)
131+
127132
### Maps
128133
#### [Overview](/application/dotnet/guides/maps/maps.md)
129134
#### [Getting HERE Maps Credentials](/application/dotnet/guides/maps/here-credentials.md)

0 commit comments

Comments
 (0)