Skip to content

Latest commit

 

History

History
73 lines (60 loc) · 3.86 KB

README.md

File metadata and controls

73 lines (60 loc) · 3.86 KB

Xamarin.Forms Extensions for Tizen

Tizen TV UIControls Build Status myget Codacy Badge

The Tizen TV UIControls is a set of helpful extensions to the Xamarin Forms framework for the Samsung TV device. The binaries are available via NuGet (package name is Tizen.TV.UIControls.Forms) with the source available here.

Screenshots

Getting Started

Install package

nuget.exe
nuget.exe install Tizen.TV.UIControls -Version 1.1.0
.csproj
<PackageReference Include="Tizen.TV.UIControls" Version="1.1.0" />

Use in Xaml

Declaring Namespaces for TV.UIControls
<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)
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)
Forms.Init(app);
UIControls.Init();
//set main window provider
UIControls.MainWindowProvider = () => app.MainWindow;

Guides

https://samsung.github.io/Tizen.TV.UIControls/guides/Overview.html

API document

https://samsung.github.io/Tizen.TV.UIControls/api/index.html

Tizen Theme Common

The Tizen Theme Common is a set of helpful extensions to the Xamarin Forms framework for Tizen devices. It provides various UI controls that can be commonly used in all different Tizen profiles with rich and customizable functionalities. The Nuget package is available with the name of Tizen.Theme.Common.

Screenshots

Getting Started

Install package

.csproj
  <PackageReference Include="Tizen.Theme.Common" Version="1.1.0-pre5" />

Initialization on Platform code

CommonUI.Init(app);

// Or, you can use InitOptions as followings. 
// Make sure it is `Tizen.Theme.Common.InitOptions`. (not Tizen.TV.UIControls.InitOptions)
// CommonUI.Init(new InitOptions(app));

...

// `CommonUI.AddCommonThemeOverlay()` should be called after other's Init including `Forms.Init()` and `UIControls.Init()`
CommonUI.AddCommonThemeOverlay();