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); } }
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e) { PopupAttributes tempAttributes = StyleManager.Instance.GetAttributes(style) as PopupAttributes; if (tempAttributes != null) { attributes = popupAttributes = tempAttributes; RelayoutRequest(); } }
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(); }
public Popup(PopupAttributes attributes) : base(attributes) { Initialize(); }