using System;
using ElmSharp;
using EWindow = ElmSharp.Window;
+using ELayout = ElmSharp.Layout;
namespace Xamarin.Forms.Platform.Tizen.Native
{
public class Window : EWindow
{
+ ELayout _layout;
Conformant _conformant;
/// <summary>
}
}
+ public ELayout BaseLayout
+ {
+ get
+ {
+ return _layout;
+ }
+
+ private set
+ {
+ _layout = value;
+ }
+ }
+
/// <summary>
/// Sets the main page of Window.
/// </summary>
/// <param name="content">ElmSharp.EvasObject type page to be set.</param>
public void SetMainPage(EvasObject content)
{
- _conformant.SetContent(content);
+ _layout.SetContent(content);
}
void Initialize()
_conformant.SetWeight(1.0, 1.0); // expand
_conformant.Show();
+ // Create the base (default) layout for the application
+ _layout = new ELayout(_conformant);
+ _layout.SetAlignment(-1.0, -1.0); // fill
+ _layout.SetWeight(1.0, 1.0); // expand
+ _layout.SetTheme("layout", "application", "default");
+ _layout.Show();
+
+ _conformant.SetContent(_layout);
+ BaseLayout = _layout;
AvailableOrientations = DisplayOrientations.Portrait | DisplayOrientations.Landscape | DisplayOrientations.PortraitFlipped | DisplayOrientations.LandscapeFlipped;
}
DisplayOrientations GetDisplayOrientation()