summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonYoung Choi <wy80.choi@samsung.com>2016-11-30 15:27:26 +0900
committerGerrit Code Review <gerrit@s001>2016-11-30 15:27:27 +0900
commita0a71a913a7c0a89cb6784d2ffec9027d4030651 (patch)
tree5199ce71faab2e2e275658b75a94a2c9b038633c
parent730d52e8e4f79227c5f332451604c25923117fc8 (diff)
parent2bf6c5cfa2d62b373fa17265483a6e848e427f91 (diff)
downloadxamarin-forms-a0a71a913a7c0a89cb6784d2ffec9027d4030651.tar.gz
xamarin-forms-a0a71a913a7c0a89cb6784d2ffec9027d4030651.tar.bz2
xamarin-forms-a0a71a913a7c0a89cb6784d2ffec9027d4030651.zip
Merge "Revert "Remove unused method and file"" into devel/dotnet
-rw-r--r--Xamarin.Forms.Platform.Tizen/Extensions/LayoutExtensions.cs18
-rw-r--r--[-rwxr-xr-x]Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.csproj3
2 files changed, 20 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Extensions/LayoutExtensions.cs b/Xamarin.Forms.Platform.Tizen/Extensions/LayoutExtensions.cs
new file mode 100644
index 00000000..72f3faa0
--- /dev/null
+++ b/Xamarin.Forms.Platform.Tizen/Extensions/LayoutExtensions.cs
@@ -0,0 +1,18 @@
+using System.Collections.Generic;
+using ElmSharp;
+
+namespace Xamarin.Forms.Platform.Tizen
+{
+ public static class LayoutExtensions
+ {
+ public static void Add(this IList<View> children, EvasObject obj, MeasureDelegate measureDelegate = null)
+ {
+ children.Add(obj.ToView(measureDelegate));
+ }
+
+ public static View ToView(this EvasObject obj, MeasureDelegate measureDelegate = null)
+ {
+ return new EvasObjectWrapper(obj, measureDelegate);
+ }
+ }
+}
diff --git a/Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.csproj b/Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.csproj
index 53d4be27..526b9f5e 100755..100644
--- a/Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.csproj
+++ b/Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.csproj
@@ -43,6 +43,7 @@
<Compile Include="ExportRendererAttribute.cs" />
<Compile Include="Extensions\ColorExtensions.cs" />
<Compile Include="Extensions\KeyboardExtensions.cs" />
+ <Compile Include="Extensions\LayoutExtensions.cs" />
<Compile Include="Extensions\ScrollToPositionExtensions.cs" />
<Compile Include="Extensions\TextAlignmentExtensions.cs" />
<Compile Include="Forms.cs" />
@@ -152,4 +153,4 @@
<_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
<AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
</PropertyGroup>
-</Project> \ No newline at end of file
+</Project>