Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion MaterialDesignControls.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<description>MaterialDesignControls Plugin for Xamarin Forms is a collection of Xamarin.Forms controls that apply the Material Design Guidelines</description>
<releaseNotes></releaseNotes>
<summary>Material Design Controls for Xamarin Forms</summary>
<tags>xamarin, ios, android, forms, xamarin.forms, plugin, materialdesigncontrols, materialdesign, materialcontrols, horus</tags>
<tags>xamarin, ios, android, tizen, forms, xamarin.forms, plugin, materialdesigncontrols, materialdesign, materialcontrols, horus</tags>
<dependencies>
<group targetFramework="MonoAndroid10">
<dependency id="Xamarin.Forms" version="4.4.0.991864" />
Expand All @@ -24,6 +24,9 @@
<group targetFramework=".NETStandard1.0">
<dependency id="Xamarin.Forms" version="4.4.0.991864" />
</group>
<group targetFramework="tizen40">
<dependency id="Xamarin.Forms" version="4.4.0.991864" />
</group>
</dependencies>
</metadata>
<files>
Expand All @@ -44,4 +47,12 @@
<file src="src/MaterialDesignControls/bin/Release/netstandard2.0/Plugin.MaterialDesignControls.dll" target="lib\Xamarin.iOS10\Plugin.MaterialDesignControls.dll" />
<file src="src/MaterialDesignControls/bin/Release/netstandard2.0/Plugin.MaterialDesignControls.xml" target="lib\Xamarin.iOS10\Plugin.MaterialDesignControls.xml" />
</files>

<!--Tizen Unified-->
<file src="src/MaterialDesignControls.Tizen/bin/Release/Plugin.MaterialDesignControls.Tizen.dll" target="lib\tizen40\Plugin.MaterialDesignControls.Tizen.dll" />
<file src="src/MaterialDesignControls.Tizen/bin/Release/Plugin.MaterialDesignControls.Tizen.xml" target="lib\tizen40\Plugin.MaterialDesignControls.Tizen.xml" />
<file src="src/MaterialDesignControls/bin/Release/netstandard2.0/Plugin.MaterialDesignControls.dll" target="lib\tizen40\Plugin.MaterialDesignControls.dll" />
<file src="src/MaterialDesignControls/bin/Release/netstandard2.0/Plugin.MaterialDesignControls.xml" target="lib\tizen40\Plugin.MaterialDesignControls.xml" />
</files>

</package>
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ MaterialDesignControls Plugin for Xamarin Forms is a collection of Xamarin.Forms
| ------------------- | :------------------: |
|Xamarin.iOS|iOS 8+|
|Xamarin.Android|API 16+|
|Tizen |API 4+|
|Xamarin.Forms|>= 4.4.0.991864|

## API Usage
Expand All @@ -29,6 +30,12 @@ or if you're using **Android**:
```C#
Plugin.MaterialDesignControls.Android.Renderer.Init();
```

or if you're using **Tizen**:
```C#
Plugin.MaterialDesignControls.Tizen.Renderer.Init();
```

You must add this namespace to your xaml files:

```XML
Expand Down
18 changes: 18 additions & 0 deletions example/ExampleMaterialDesignControls.Tizen/CustomPageRenderer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Xamarin.Forms;
using Xamarin.Forms.Platform.Tizen;
using EColor = ElmSharp.Color;

[assembly: ExportRenderer(typeof(Page), typeof(CustomPageRenderer))]
namespace Xamarin.Forms.Platform.Tizen
{
public class CustomPageRenderer : PageRenderer
{
static readonly EColor s_DefaultBackgroundColor = new EColor(250,250,250);

protected override void OnElementChanged(ElementChangedEventArgs<Page> e)
{
base.OnElementChanged(e);
NativeView.Color = s_DefaultBackgroundColor;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Xamarin.Forms;

namespace ExampleMaterialDesignControls.Tizen
{
class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
{
protected override void OnCreate()
{
base.OnCreate();
LoadApplication(new App());
}

static void Main(string[] args)
{
var app = new Program();
Forms.Init(app, true);
Plugin.MaterialDesignControls.Tizen.Renderer.Init();
app.Run(args);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<Project Sdk="Tizen.NET.Sdk/1.1.4">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>tizen40</TargetFramework>
<CopyLocalRuntimeTargetAssets Condition="'$(CopyLocalRuntimeTargetAssets)' == ''">true</CopyLocalRuntimeTargetAssets>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>None</DebugType>
</PropertyGroup>

<ItemGroup>
<Folder Include="lib\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.6.0.1180" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\example\ExampleMaterialDesignControls\ExampleMaterialDesignControls.csproj" />
<ProjectReference Include="..\..\src\MaterialDesignControls.Tizen\MaterialDesignControls.Tizen.csproj" />
</ItemGroup>



</Project>
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.
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions example/ExampleMaterialDesignControls.Tizen/tizen-manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns="http://tizen.org/ns/packages" api-version="4" package="org.tizen.example.ExampleMaterialDesignControls.Tizen" version="1.0.0">
<profile name="common" />
<ui-application appid="org.tizen.example.ExampleMaterialDesignControls.Tizen"
exec="ExampleMaterialDesignControls.Tizen.dll"
type="dotnet"
multiple="false"
taskmanage="true"
nodisplay="false"
launch_mode="single"
>
<label>ExampleMaterialDesignControls.Tizen</label>
<icon>ExampleMaterialDesignControls.Tizen.png</icon>
<metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
</ui-application>
</manifest>
Loading