{
if (null == titleText)
{
- titleText = new TextLabel
- {
- PositionUsesPivotPoint = true,
- ParentOrigin = Tizen.NUI.ParentOrigin.TopLeft,
- PivotPoint = Tizen.NUI.PivotPoint.TopLeft,
- HorizontalAlignment = HorizontalAlignment.Begin,
- VerticalAlignment = VerticalAlignment.Bottom
- };
+ titleText = new TextLabel();
Add(titleText);
}
return titleText;
PopupStyle ppStyle = viewStyle as PopupStyle;
if (null != ppStyle)
{
- if (ppStyle.Buttons != null)
- {
- if (ppStyle.Buttons.PositionUsesPivotPoint == null) ppStyle.Buttons.PositionUsesPivotPoint = true;
- if (ppStyle.Buttons.ParentOrigin == null) ppStyle.Buttons.ParentOrigin = Tizen.NUI.ParentOrigin.BottomLeft;
- if (ppStyle.Buttons.PivotPoint == null) ppStyle.Buttons.PivotPoint = Tizen.NUI.PivotPoint.BottomLeft;
- }
Title.ApplyStyle(ppStyle.Title);
Title.RaiseToTop();
}
return new PopupStyle();
}
- /// <inheritdoc/>
+ /// <summary>
+ /// Theme change callback when theme is changed, this callback will be trigger.
+ /// </summary>
+ /// <param name="sender">The sender</param>
+ /// <param name="e">The event data</param>
[EditorBrowsable(EditorBrowsableState.Never)]
- protected override void OnUpdate()
+ protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- base.OnUpdate();
- UpdateView();
+ PopupStyle ppStyle = StyleManager.Instance.GetViewStyle(StyleName) as PopupStyle;
+ if (ppStyle != null)
+ {
+ ApplyStyle(ppStyle);
+ UpdateView();
+ }
}
private void Initialize()
private void UpdateView()
{
- if (popupStyle == null) return;
btGroup.UpdateButton(popupStyle.Buttons);
UpdateContentView();
UpdateTitle();