public override void CopyFrom(BindableObject bindableObject) { base.CopyFrom(bindableObject); PopupStyle popupStyle = bindableObject as PopupStyle; if (popupStyle != null) { if (popupStyle.Title != null) { Title?.CopyFrom(popupStyle.Title); } if (popupStyle.Buttons != null) { Buttons?.CopyFrom(popupStyle.Buttons); } } }
public Popup(PopupStyle popupStyle) : base(popupStyle) { Initialize(); }
public Popup(PopupStyle popupStyle) : base(popupStyle) { }
public PopupStyle(PopupStyle style) : base(style) { Title = new TextLabelStyle(); Buttons = new ButtonStyle(); this.CopyFrom(style); }
/// <summary> /// Creates a new instance of a PopupStyle with style. /// </summary> /// <param name="style">Create PopupStyle by style customized by user.</param> /// <since_tizen> 8 </since_tizen> public PopupStyle(PopupStyle style) : base(style) { InitSubStyle(); this.CopyFrom(style); }
public Popup(PopupStyle attributes) : base(attributes) { Initialize(); }
/// <summary> /// Return default Popup style /// </summary> internal protected override ViewStyle GetAttributes() { PopupStyle style = new PopupStyle { Size = new Size(500, 280), BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1), ImageShadow = new ImageShadow { Url = DefaultStyle.GetResourcePath("nui_component_default_popup_shadow.png"), Border = new Rectangle(24, 24, 24, 24), Offset = new Vector2(-24, -24), Extents = new Vector2(48, 48), }, Title = new TextLabelStyle { PointSize = 16, TextColor = Color.Black, PositionUsesPivotPoint = true, ParentOrigin = Tizen.NUI.ParentOrigin.TopLeft, PivotPoint = Tizen.NUI.PivotPoint.TopLeft, HorizontalAlignment = HorizontalAlignment.Begin, VerticalAlignment = VerticalAlignment.Bottom, Padding = 20, Text = "Title", }, Buttons = new ButtonStyle { Size = new Size(0, 80), PositionUsesPivotPoint = true, ParentOrigin = Tizen.NUI.ParentOrigin.BottomLeft, PivotPoint = Tizen.NUI.PivotPoint.BottomLeft, BackgroundColor = new Selector <Color> { Normal = new Color(1, 1, 1, 1), Pressed = new Color(1, 1, 1, 0.5f), }, Overlay = new ImageViewStyle { PositionUsesPivotPoint = true, ParentOrigin = Tizen.NUI.ParentOrigin.Center, PivotPoint = Tizen.NUI.PivotPoint.Center, WidthResizePolicy = ResizePolicyType.FillToParent, HeightResizePolicy = ResizePolicyType.FillToParent, BackgroundColor = new Selector <Color> { Normal = new Color(1.0f, 1.0f, 1.0f, 1.0f), Pressed = new Color(0.0f, 0.0f, 0.0f, 0.1f), Selected = new Color(1.0f, 1.0f, 1.0f, 1.0f), } }, Text = new TextLabelStyle { PositionUsesPivotPoint = true, ParentOrigin = Tizen.NUI.ParentOrigin.Center, PivotPoint = Tizen.NUI.PivotPoint.Center, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, TextColor = new Color(0.05f, 0.63f, 0.9f, 1) }, }, }; return(style); }
public PopupStyle(PopupStyle style) : base(style) { }