Exemplo n.º 1
0
        public PopupAttributes(PopupAttributes attributes) : base(attributes)
        {
            if (attributes.ShadowImageAttributes != null)
            {
                ShadowImageAttributes = attributes.ShadowImageAttributes.Clone() as ImageAttributes;
            }

            if (attributes.BackgroundImageAttributes != null)
            {
                BackgroundImageAttributes = attributes.BackgroundImageAttributes.Clone() as ImageAttributes;
            }

            if (attributes.TitleTextAttributes != null)
            {
                TitleTextAttributes = attributes.TitleTextAttributes.Clone() as TextAttributes;
            }

            if (attributes.ButtonAttributes != null)
            {
                ButtonAttributes = attributes.ButtonAttributes.Clone() as ButtonAttributes;
            }

            if (attributes.ShadowOffset != null)
            {
                ShadowOffset = new Vector4(attributes.ShadowOffset.W, attributes.ShadowOffset.X, attributes.ShadowOffset.Y, attributes.ShadowOffset.Z);
            }
        }
Exemplo n.º 2
0
        protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
        {
            PopupAttributes tempAttributes = StyleManager.Instance.GetAttributes(style) as PopupAttributes;

            if (tempAttributes != null)
            {
                attributes = popupAttributes = tempAttributes;
                RelayoutRequest();
            }
        }
Exemplo n.º 3
0
        private void Initialize()
        {
            popupAttributes = attributes as PopupAttributes;
            if (popupAttributes == null)
            {
                throw new Exception("Popup attribute parse error.");
            }

            ApplyAttributes(this, popupAttributes);
            LeaveRequired = true;

            ContentView = new View()
            {
                ParentOrigin           = Tizen.NUI.ParentOrigin.TopLeft,
                PivotPoint             = Tizen.NUI.PivotPoint.TopLeft,
                PositionUsesPivotPoint = true
            };
            Add(ContentView);
            ContentView.RaiseToTop();
        }
Exemplo n.º 4
0
 public Popup(PopupAttributes attributes) : base(attributes)
 {
     Initialize();
 }