//private Naviframe _naviframe;

        /// <summary>
        /// Initializes a new instance of the Window class.
        /// </summary>
        public ReactWindow(string name) : base(name)
        {
            Log.Info(ReactConstants.Tag, "## Contruct ReactWindow [BGN] ## ");

            // size
            //var size = ScreenSize;
            //Resize(size.Width, size.Height);
            //BackgroundColor = Color.Gray;

            // events

            /*
             * Deleted += (sender, e) =>
             * {
             *  Closed?.Invoke(this, EventArgs.Empty);
             * };
             * CloseRequested += (sender, e) =>
             * {
             *  Unrealize();
             * };
             *
             * KeyGrab(EvasKeyEventArgs.PlatformBackButtonName, false);
             * KeyUp += (s, e) =>
             * {
             *  if (e.KeyName == EvasKeyEventArgs.PlatformBackButtonName)
             *  {
             *      BackButtonPressed?.Invoke(this, EventArgs.Empty);
             *  }
             * };
             */
            // active window
            //Active();

            //AutoDeletion = false;   // f**k off here
            //Show();
            this.KeyGrab(EvasKeyEventArgs.PlatformBackButtonName, false);
            this.KeyGrab("XF86Red", false);
            this.KeyUp += (s, e) =>
            {
                if (e.KeyName == EvasKeyEventArgs.PlatformBackButtonName)
                {
                    Log.Info(ReactConstants.Tag, "============================Back key is pressed");
                    BackButtonPressed?.Invoke(this, EventArgs.Empty);
                }
                else if (e.KeyName == "XF86Red")
                {
                    Log.Info(ReactConstants.Tag, "============================Red key is pressed");
                    RedButtonPressed?.Invoke(this, EventArgs.Empty);
                }
            };
            // conformant container
            _conformant = new Conformant(this);
            _conformant.SetAlignment(-1.0, -1.0);   // fill
            _conformant.SetWeight(1.0, 1.0);        // expand
            _conformant.Show();

            Log.Info(ReactConstants.Tag, "## Contruct ReactWindow [END] ## ");
            //
            // Initialize();
        }
        void Initialize()
        {
            this.KeyGrab(EvasKeyEventArgs.PlatformBackButtonName, false);
            this.KeyGrab("XF86Red", false);
            this.KeyUp += (s, e) =>
            {
                if (e.KeyName == EvasKeyEventArgs.PlatformBackButtonName)
                {
                    Log.Info(ReactConstants.Tag, "============================Back key is pressed");
                    BackButtonPressed?.Invoke(this, EventArgs.Empty);
                }
                else if (e.KeyName == "XF86Red")
                {
                    Log.Info(ReactConstants.Tag, "============================Red key is pressed");
                    RedButtonPressed?.Invoke(this, EventArgs.Empty);
                }
            };
            // conformant container
            _conformant = new Conformant(this);
            _conformant.SetAlignment(-1.0, -1.0);   // fill
            _conformant.SetWeight(1.0, 1.0);        // expand
            _conformant.Show();

            #region "Navigator navigator container "

            /*
             * _naviframe = new Naviframe(this)
             * {
             *  PreserveContentOnPop = true,
             *  DefaultBackButtonEnabled = true
             * };
             *
             * _naviframe.Popped += (s, e) =>
             * {
             *  Log.Info(ReactConstants.Tag, "Naviframe was popped: "+(int)(IntPtr)e.Content);
             * };
             *
             * _naviframe.Show();
             *
             * // include navi
             * _conformant.SetContent(_naviframe);
             */
            #endregion
            AvailableOrientations = DisplayOrientations.Portrait | DisplayOrientations.Landscape | DisplayOrientations.PortraitFlipped | DisplayOrientations.LandscapeFlipped;
        }