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

Commit

Permalink
Fix TwoButtonPage issue on shell
Browse files Browse the repository at this point in the history
  • Loading branch information
shyunMin committed Mar 10, 2020
1 parent c1921ba commit e593a15
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using System.Text;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Tizen;
using XForms = Xamarin.Forms.Forms;

[assembly: ExportEffect(typeof(Tizen.Wearable.CircularUI.Forms.Renderer.TizenCircleSurfaceEffect), "CircleSurfaceEffect")]
namespace Tizen.Wearable.CircularUI.Forms.Renderer
Expand All @@ -43,7 +44,15 @@ protected override void OnAttached()
{
var rect = Control.Geometry;

_surfaceLayout = new ElmSharp.Layout(Container);
if (Container != null)
{
_surfaceLayout = new ElmSharp.Layout(Container);
}
else
{
_surfaceLayout = new ElmSharp.Layout(XForms.NativeParent);
}

_surfaceLayout.Show();
_surface = new ElmSharp.Wearable.CircleSurface(_surfaceLayout);
_surfaceLayout.Geometry = rect;
Expand Down

0 comments on commit e593a15

Please sign in to comment.