Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiejava authored Oct 30, 2020
1 parent 5e686a6 commit 8b8a309
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,32 @@ The Tizen TV UIControls is a set of helpful extensions to the Xamarin Forms fram
### Install package
#### nuget.exe
```
nuget.exe install Tizen.TV.UIControls -Version 1.0.0
nuget.exe install Tizen.TV.UIControls -Version 1.1.0
```
#### .csproj
```xml
<PackageReference Include="Tizen.TV.UIControls" Version="1.0.0" />
<PackageReference Include="Tizen.TV.UIControls" Version="1.1.0" />
```
### Use in Xaml
#### Declaring Namespaces for TV.UIControls
``` xml
<ContentPage ... xmlns:tv="clr-namespace:Tizen.TV.UIControls.Forms;assembly=Tizen.TV.UIControls.Forms" ...>
```
### Initialization on Platform code
- New way (since 1.1.0-pre2)
``` c#
Forms.Init(app);
// UIControls.Init() should be called after Forms.Init()
// No MainWindowProvider required for MediaPlayer
UIControls.Init(new InitOptions(app));
```

- Legacy (~ 1.0.0)
``` c#
Tizen.TV.UIControls.Forms.UIControls.Init();
//set main window provider
Tizen.TV.UIControls.Forms.UIControls.MainWindowProvider = () => app.MainWindow;
Forms.Init(app);
UIControls.Init();
//set main window provider
UIControls.MainWindowProvider = () => app.MainWindow;
```

### Guides
Expand Down

0 comments on commit 8b8a309

Please sign in to comment.