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.Collections.Generic;
18 using System.ComponentModel;
19 using Tizen.NUI.BaseComponents;
20 using Tizen.NUI.Binding;
22 namespace Tizen.NUI.Components
25 /// ImageControlStyle is a class which saves Button's ux data.
27 /// <since_tizen> 6 </since_tizen>
28 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
29 [EditorBrowsable(EditorBrowsableState.Never)]
30 public class ImageControlStyle : ControlStyle
33 /// Creates a new instance of a ImageControlStyle.
35 /// <since_tizen> 6 </since_tizen>
36 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
37 [EditorBrowsable(EditorBrowsableState.Never)]
38 public ImageControlStyle() : base()
43 /// Creates a new instance of a ImageControlStyle with style.
45 /// <param name="style">Create ImageControlStyle by style customized by user.</param>
46 /// <since_tizen> 6 </since_tizen>
47 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
48 [EditorBrowsable(EditorBrowsableState.Never)]
49 public ImageControlStyle(ImageControlStyle style) : base(style)
58 Image.CopyFrom(style.Image);
64 /// <since_tizen> 6 </since_tizen>
65 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
66 [EditorBrowsable(EditorBrowsableState.Never)]
67 public ImageViewStyle Image
73 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
74 [EditorBrowsable(EditorBrowsableState.Never)]
75 public override void CopyFrom(BindableObject bindableObject)
77 base.CopyFrom(bindableObject);
79 ImageControlStyle imageControlStyle = bindableObject as ImageControlStyle;
81 if (null != imageControlStyle)
83 if (null != imageControlStyle.Image)
85 Image.CopyFrom(imageControlStyle.Image);
90 private void InitSubStyle()
92 Image = new ImageViewStyle();
93 Image.PropertyChanged += SubStyleCalledEvent;
96 private void SubStyleCalledEvent(object sender, global::System.EventArgs e)