Exemplo n.º 1
0
        internal void ChangeMode(bool isEditMode, int currentPage, int lastPage)
        {
            if (isEditMode)
            {
                BackgroundImage = CommonResource.GetResourcePath() + "/b_home_screen_container.png";
                editBGView      = new EditBGView(currentPage, lastPage);

                this.Add(editBGView);
                editBGView.LowerToBottom();


                this.mainText.Text    = "Edit mode";
                this.mainText.Opacity = 0.0f;
                this.subText.Text     = "";

                rotaryIndicator.Hide();
            }
            else
            {
                editBGView.DisposeChild();
                editBGView.Unparent();
                editBGView.Dispose();
                editBGView = null;

                this.BackgroundColor  = Color.Black;
                this.mainText.Opacity = 0.0f;

                //rotaryIndicator.SetRotaryPosition(0);
                rotaryIndicator.Show();
            }
            this.isEditMode = isEditMode;
        }
Exemplo n.º 2
0
        internal void ChangeMode(bool isEditMode, int currentPage, int lastPage)
        {
            if (isEditMode)
            {
                BackgroundImage = CommonResource.GetResourcePath() + "/b_home_screen_container.png";
                //container.BackgroundColor = Color.Black;
                editBGView = new EditBGView(currentPage, lastPage);

                this.Add(editBGView);
                editBGView.LowerToBottom();

                movingIcon = new ImageView()
                {
                    Size                   = new Size(60, 60),
                    PivotPoint             = Tizen.NUI.PivotPoint.Center,
                    PositionUsesPivotPoint = true,
                };
                this.Add(movingIcon);


                this.mainText.Text    = "Edit mode";
                this.mainText.Opacity = 0.0f;
                this.subText.Text     = "";

                rotaryIndicator.Hide();
            }
            else
            {
                editBGView.DisposeChild();
                editBGView.Unparent();
                editBGView.Dispose();
                editBGView = null;

                this.BackgroundColor  = Color.Black;
                this.mainText.Text    = itemList[0].MainText;
                this.subText.Text     = itemList[0].SubText;
                this.mainText.Opacity = 0.0f;

                //rotaryIndicator.SetRotaryPosition(0);
                rotaryIndicator.Show();
            }
            this.isEditMode = isEditMode;
        }