2 * Copyright(c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 using System.ComponentModel;
18 using Tizen.NUI.BaseComponents;
19 using Tizen.NUI.Binding;
21 namespace Tizen.NUI.Components
24 /// PopupStyle is a class which saves Popup's ux data.
26 [EditorBrowsable(EditorBrowsableState.Never)]
27 public class PopupStyle : ControlStyle
29 static PopupStyle() { }
32 /// Creates a new instance of a PopupStyle.
34 [EditorBrowsable(EditorBrowsableState.Never)]
35 public PopupStyle() : base()
40 /// Creates a new instance of a PopupStyle with style.
42 /// <param name="style">Create PopupStyle by style customized by user.</param>
43 [EditorBrowsable(EditorBrowsableState.Never)]
44 public PopupStyle(PopupStyle style) : base(style)
49 /// Title Text's style.
51 [EditorBrowsable(EditorBrowsableState.Never)]
52 public TextLabelStyle Title { get; set; } = new TextLabelStyle();
55 /// Popup button's style.
57 [EditorBrowsable(EditorBrowsableState.Never)]
58 public ButtonStyle Buttons { get; set; } = new ButtonStyle();
61 [EditorBrowsable(EditorBrowsableState.Never)]
62 public override void CopyFrom(BindableObject bindableObject)
64 base.CopyFrom(bindableObject);
66 if (bindableObject is PopupStyle popupStyle)
68 Title.CopyFrom(popupStyle.Title);
69 Buttons.CopyFrom(popupStyle.Buttons);