/// Creates a new instance of a Button with style.
/// </summary>
/// <param name="style">Create Button by special style defined in UX.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Button(string style) : base(style)
{
Initialize();
}
/// <summary>
- /// Creates a new instance of a Button with attributes.
+ /// Creates a new instance of a Button with style.
/// </summary>
- /// <param name="controlStyle">Create Button by attributes customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Button(ButtonStyle controlStyle) : base(controlStyle)
+ /// <param name="buttonStyle">Create Button by style customized by user.</param>
+ /// <since_tizen> 8 </since_tizen>
+ public Button(ButtonStyle buttonStyle) : base(buttonStyle)
{
Initialize();
}
Right,
}
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Style of the button.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public new ButtonStyle Style => ViewStyle as ButtonStyle;
/// <summary>
return base.OnTouch(touch);
}
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Apply style to button.
+ /// </summary>
+ /// <param name="viewStyle">The style to apply.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void ApplyStyle(ViewStyle viewStyle)
{
base.ApplyStyle(viewStyle);
}
/// <summary>
- /// Get Button attribues.
+ /// Get Button style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <returns>The default button style.</returns>
+ /// <since_tizen> 8 </since_tizen>
protected override ViewStyle GetViewStyle()
{
return new ButtonStyle();
}
/// <summary>
- /// It is hijack by using protected, attributes copy problem when class inherited from Button.
+ /// It is hijack by using protected, style copy problem when class inherited from Button.
/// </summary>
/// <since_tizen> 6 </since_tizen>
private void Initialize()
/// <summary>
/// Theme change callback when theme is changed, this callback will be trigger.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="sender">The sender</param>
+ /// <param name="e">The event data</param>
+ /// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- ButtonStyle tempAttributes = StyleManager.Instance.GetViewStyle(style) as ButtonStyle;
- if (tempAttributes != null)
+ ButtonStyle buttonStyle = StyleManager.Instance.GetViewStyle(style) as ButtonStyle;
+ if (buttonStyle != null)
{
- Style.CopyFrom(tempAttributes);
+ Style.CopyFrom(buttonStyle);
UpdateUIContent();
}
}
public CheckBox(string style) : base(style) { }
/// <summary>
- /// Creates a new instance of a CheckBox with attributes.
+ /// Creates a new instance of a CheckBox with style.
/// </summary>
- /// <param name="attrs"></param>
+ /// <param name="buttonStyle"></param>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public CheckBox(ButtonStyle attrs) : base(attrs) { }
+ public CheckBox(ButtonStyle buttonStyle) : base(buttonStyle) { }
/// <summary>
/// Get CheckBoxGroup to which this CheckBox belong.
}
/// <summary>
- /// Update by attributes.
+ /// Update by style.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
public DropDown(string style) : base(style) { }
/// <summary>
- /// Creates a new instance of a DropDown with attributes.
+ /// Creates a new instance of a DropDown with style.
/// </summary>
- /// <param name="attributes">Create DropDown by attributes customized by user.</param>
+ /// <param name="dropDownStyle">Create DropDown by style customized by user.</param>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public DropDown(DropDownStyle attributes) : base(attributes)
+ public DropDown(DropDownStyle dropDownStyle) : base(dropDownStyle)
{
}
}
/// <summary>
- /// Update DropDown by attributes.
+ /// Update DropDown by style.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
}
/// <summary>
- /// Get DropDown attribues.
+ /// Get DropDown style.
/// </summary>
+ /// <returns>The default dropdown style.</returns>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
{
if(style != null)
{
- ViewStyle attributes = StyleManager.Instance.GetViewStyle(style);
- if(attributes == null)
+ ViewStyle viewStyle = StyleManager.Instance.GetViewStyle(style);
+ if(viewStyle == null)
{
throw new InvalidOperationException($"There is no style {style}");
}
- itemDataStyle = attributes as DropDownItemStyle;
+ itemDataStyle = viewStyle as DropDownItemStyle;
}
Initialize();
}
base.Dispose(type);
}
+ /// <summary>
+ /// Get DropDownItemView style.
+ /// </summary>
+ /// <returns>The empty.</returns>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
protected override ViewStyle GetViewStyle()
}
/// <summary>
- /// you can override it to create your own default attributes.
+ /// you can override it to create your own default style.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
/// Constructor of the Loading class with special style.
/// </summary>
/// <param name="style">The string to initialize the Loading.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Loading(string style) : base(style)
{
Initialize();
/// <summary>
/// The constructor of the Loading class with specific style.
/// </summary>
- /// <param name="style">The style object to initialize the Loading.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Loading(LoadingStyle style) : base(style)
+ /// <param name="loadingStyle">The style object to initialize the Loading.</param>
+ /// <since_tizen> 8 </since_tizen>
+ public Loading(LoadingStyle loadingStyle) : base(loadingStyle)
{
Initialize();
}
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Get style of loading.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public new LoadingStyle Style => ViewStyle as LoadingStyle;
/// <summary>
/// <summary>
/// Get Loading style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <returns>The default loading style.</returns>
+ /// <since_tizen> 8 </since_tizen>
protected override ViewStyle GetViewStyle()
{
return new LoadingStyle();
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Pagination(PaginationStyle style) : base(style)
+ public Pagination(PaginationStyle paginationStyle) : base(paginationStyle)
{
Initialize();
}
}
/// <summary>
- /// you can override it to create your own default attributes.
+ /// you can override it to create your own default style.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
paginationStyle = Style as PaginationStyle;
if (paginationStyle == null)
{
- throw new Exception("Pagination attributes is null.");
+ throw new Exception("Pagination style is null.");
}
container = new VisualView()
/// Creates a new instance of a Popup with style.
/// </summary>
/// <param name="style">Create Popup by special style defined in UX.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Popup(string style) : base(style)
{
Initialize();
}
/// <summary>
- /// Creates a new instance of a Popup with attributes.
+ /// Creates a new instance of a Popup with style.
/// </summary>
- /// <param name="attributes">Create Popup by attributes customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Popup(PopupStyle attributes) : base(attributes)
+ /// <param name="popupStyle">Create Popup by style customized by user.</param>
+ /// <since_tizen> 8 </since_tizen>
+ public Popup(PopupStyle popupStyle) : base(popupStyle)
{
Initialize();
}
}
}
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Add button by style's name.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public void AddButton(string buttonText, string style)
{
AddButton(buttonText);
}
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Add button by style.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public void AddButton(string buttonText, ButtonStyle style)
{
if (Style.Buttons != null && style != null)
/// <since_tizen> 6 </since_tizen>
public event EventHandler<ButtonClickEventArgs> PopupButtonClickEvent;
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Get style of popup.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public new PopupStyle Style => ViewStyle as PopupStyle;
/// <summary>
base.OnFocusLost();
}
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Apply style to popup.
+ /// </summary>
+ /// <param name="viewStyle">The style to apply.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void ApplyStyle(ViewStyle viewStyle)
{
base.ApplyStyle(viewStyle);
}
/// <summary>
- /// Get Popup attribues.
+ /// Get Popup style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <returns>The default popup style.</returns>
+ /// <since_tizen> 8 </since_tizen>
protected override ViewStyle GetViewStyle()
{
return new PopupStyle();
/// <summary>
/// Theme change callback when theme is changed, this callback will be trigger.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="sender">The sender</param>
+ /// <param name="e">The event data</param>
+ /// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- PopupStyle tempAttributes = StyleManager.Instance.GetViewStyle(style) as PopupStyle;
- if (tempAttributes != null)
+ PopupStyle popupStyle = StyleManager.Instance.GetViewStyle(style) as PopupStyle;
+ if (popupStyle != null)
{
string strSaveTitleText = TitleText;
- Style.CopyFrom(tempAttributes);
+ Style.CopyFrom(popupStyle);
Style.Title.Text = strSaveTitleText;
UpdateView();
}
{
container.Add(this);
LeaveRequired = true;
- PropertyChanged += PopupAttributesPropertyChanged;
+ PropertyChanged += PopupStylePropertyChanged;
// ContentView
ContentView = new View()
}
}
- private void PopupAttributesPropertyChanged(object sender, PropertyChangedEventArgs e)
+ private void PopupStylePropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName.Equals("LayoutDirection"))
{
/// The constructor of the Progress class with specific style.
/// </summary>
/// <param name="style">style name</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Progress(string style) : base(style)
{
Initialize();
}
/// <summary>
- /// The constructor of the Progress class with specific Attributes.
+ /// The constructor of the Progress class with specific style.
/// </summary>
- /// <param name="progressStyle">The Attributes object to initialize the Progress.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="progressStyle">The style object to initialize the Progress.</param>
+ /// <since_tizen> 8 </since_tizen>
public Progress(ProgressStyle progressStyle) : base(progressStyle)
{
Initialize();
Indeterminate
}
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Get style of progress.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public new ProgressStyle Style => ViewStyle as ProgressStyle;
/// <summary>
/// <summary>
/// Theme change callback when theme is changed, this callback will be trigger.
/// </summary>
- /// <param name="sender">serder object</param>
- /// <param name="e">ThemeChangeEventArgs</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="sender">The sender</param>
+ /// <param name="e">The event data</param>
+ /// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
ProgressStyle tempStyle = StyleManager.Instance.GetViewStyle(style) as ProgressStyle;
}
/// <summary>
- /// Get Progress attribues.
+ /// Get Progress style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <returns>The default progress style.</returns>
+ /// <since_tizen> 8 </since_tizen>
protected override ViewStyle GetViewStyle()
{
return new ProgressStyle();
[EditorBrowsable(EditorBrowsableState.Never)]
public RadioButton(string style) : base(style) { }
/// <summary>
- /// Creates a new instance of a RadioButton with attributes.
+ /// Creates a new instance of a RadioButton with style.
/// </summary>
- /// <param name="attrs"></param>
+ /// <param name="buttonStyle"></param>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public RadioButton(ButtonStyle attrs) : base(attrs) { }
+ public RadioButton(ButtonStyle buttonStyle) : base(buttonStyle) { }
/// <summary>
/// Get RadioButtonGroup to which this selections belong.
/// </summary>
/// The constructor of ScrollBar with specific style.
/// </summary>
/// <param name="style">style name</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ScrollBar(string style) : base(style)
{
Initialize();
/// <summary>
/// The constructor of ScrollBar with specific style.
/// </summary>
- /// <param name="style">The style object to initialize the ScrollBar.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public ScrollBar(ScrollBarStyle style) : base(style)
+ /// <param name="scrollBarStyle">The style object to initialize the ScrollBar.</param>
+ /// <since_tizen> 8 </since_tizen>
+ public ScrollBar(ScrollBarStyle scrollBarStyle) : base(scrollBarStyle)
{
Initialize();
}
}
#region public property
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Get style of scrollbar.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public new ScrollBarStyle Style => ViewStyle as ScrollBarStyle;
/// <summary>
/// <summary>
/// Get Scrollbar style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <returns>The default scrollbar style.</returns>
+ /// <since_tizen> 8 </since_tizen>
protected override ViewStyle GetViewStyle()
{
return new ScrollBarStyle();
/// <summary>
/// Theme change callback when theme is changed, this callback will be trigger.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="sender">The sender</param>
+ /// <param name="e">The event data</param>
+ /// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
ScrollBarStyle tempStyle = StyleManager.Instance.GetViewStyle(style) as ScrollBarStyle;
/// <summary>
/// Creates a new instance of a SelectButton with style.
/// </summary>
- /// <param name="style">Create SelectButton by style customized by user.</param>
+ /// <param name="buttonStyle">Create SelectButton by style customized by user.</param>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public SelectButton(ButtonStyle style) : base(style)
+ public SelectButton(ButtonStyle buttonStyle) : base(buttonStyle)
{
Initialize();
}
/// The constructor of the Slider class with specific style.
/// </summary>
/// <param name="style">The string to initialize the Slider</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Slider(string style) : base(style)
{
Initialize();
/// <summary>
/// The constructor of the Slider class with specific style.
/// </summary>
- /// <param name="style">The style object to initialize the Slider</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Slider(SliderStyle style) : base(style)
+ /// <param name="sliderStyle">The style object to initialize the Slider</param>
+ /// <since_tizen> 8 </since_tizen>
+ public Slider(SliderStyle sliderStyle) : base(sliderStyle)
{
Initialize();
}
Text
}
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Get style of slider.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public new SliderStyle Style => ViewStyle as SliderStyle;
/// <summary>
}
/// <summary>
- /// Get Slider attribues.
+ /// Get Slider style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <returns>The default slider style.</returns>
+ /// <since_tizen> 8 </since_tizen>
protected override ViewStyle GetViewStyle()
{
return new SliderStyle();
}
/// <summary>
- /// Update Slider by attributes.
+ /// Update Slider by style.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
/// <summary>
/// Theme change callback when theme is changed, this callback will be trigger.
/// </summary>
- /// <param name="sender">serder object</param>
- /// <param name="e">ThemeChangeEventArgs</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="sender">The sender</param>
+ /// <param name="e">The event data</param>
+ /// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
SliderStyle sliderStyle = StyleManager.Instance.GetViewStyle(style) as SliderStyle;
}
}
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Apply style to scrollbar.
+ /// </summary>
+ /// <param name="viewStyle">The style to apply.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void ApplyStyle(ViewStyle viewStyle)
{
base.ApplyStyle(viewStyle);
if (null != sliderStyle?.Progress)
{
- CreateSlidedTrackAttributes();
+ CreateSlidedTrack();
}
if (null != sliderStyle?.LowIndicator)
{
- CreateLowIndicatorTextAttributes();
+ CreateLowIndicatorText();
}
if (null != sliderStyle?.HighIndicator)
{
- CreateHighIndicatorTextAttributes();
+ CreateHighIndicatorText();
}
if (null != sliderStyle?.Track)
{
- CreateBackgroundTrackAttributes();
+ CreateBackgroundTrack();
}
if (null != sliderStyle?.Thumb)
{
- CreateThumbAttributes();
+ CreateThumb();
}
}
RelayoutRequest();
}
- private void CreateSlidedTrackAttributes()
+ private void CreateSlidedTrack()
{
if (null == slidedTrackImage)
{
slidedTrackImage.ApplyStyle(Style.Progress);
}
- private void CreateLowIndicatorTextAttributes()
+ private void CreateLowIndicatorText()
{
if (null == lowIndicatorText)
{
lowIndicatorText.ApplyStyle(Style.LowIndicator);
}
- private void CreateHighIndicatorTextAttributes()
+ private void CreateHighIndicatorText()
{
if (null == highIndicatorText)
{
highIndicatorText.ApplyStyle(Style.HighIndicator);
}
- private void CreateBackgroundTrackAttributes()
+ private void CreateBackgroundTrack()
{
if (null == bgTrackImage)
{
bgTrackImage.ApplyStyle(Style.Track);
}
- private void CreateThumbAttributes()
+ private void CreateThumb()
{
if (null == thumbImage)
{
/// Creates a new instance of a Switch with style.
/// </summary>
/// <param name="style">Create Switch by special style defined in UX.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Switch(string style) : base(style)
{
Initialize();
/// <summary>
/// Creates a new instance of a Switch with style.
/// </summary>
- /// <param name="style">Create Switch by style customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Switch(SwitchStyle style) : base(style)
+ /// <param name="switchStyle">Create Switch by style customized by user.</param>
+ /// <since_tizen> 8 </since_tizen>
+ public Switch(SwitchStyle switchStyle) : base(switchStyle)
{
Initialize();
}
/// <since_tizen> 6 </since_tizen>
public event EventHandler<SelectEventArgs> SelectedEvent;
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Get style of switch.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public new SwitchStyle Style => ViewStyle as SwitchStyle;
/// <summary>
}
/// <summary>
- /// Get Switch attribues.
+ /// Get Switch style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <returns>The default switch style.</returns>
+ /// <since_tizen> 8 </since_tizen>
protected override ViewStyle GetViewStyle()
{
return new SwitchStyle();
/// <summary>
/// Theme change callback when theme is changed, this callback will be trigger.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="sender">The sender</param>
+ /// <param name="e">The event data</param>
+ /// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- SwitchStyle tempAttributes = StyleManager.Instance.GetViewStyle(style) as SwitchStyle;
- if (null != tempAttributes)
+ SwitchStyle switchStyle = StyleManager.Instance.GetViewStyle(style) as SwitchStyle;
+ if (null != switchStyle)
{
- Style.CopyFrom(tempAttributes);
+ Style.CopyFrom(switchStyle);
}
}
/// Creates a new instance of a Tab with style.
/// </summary>
/// <param name="style">Create Tab by special style defined in UX.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Tab(string style) : base(style)
{
Initialize();
/// <summary>
/// Creates a new instance of a Tab with style.
/// </summary>
- /// <param name="style">Create Tab by style customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Tab(TabStyle style) : base(style)
+ /// <param name="tabStyle">Create Tab by style customized by user.</param>
+ /// <since_tizen> 8 </since_tizen>
+ public Tab(TabStyle tabStyle) : base(tabStyle)
{
Initialize();
}
/// <since_tizen> 6 </since_tizen>
public event EventHandler<ItemChangedEventArgs> ItemChangedEvent;
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Get style of tab.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public new TabStyle Style => ViewStyle as TabStyle;
/// <summary>
UpdateItems();
}
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Apply style to tab.
+ /// </summary>
+ /// <param name="viewStyle">The style to apply.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void ApplyStyle(ViewStyle viewStyle)
{
base.ApplyStyle(viewStyle);
}
/// <summary>
- /// Update Tab by attributes.
+ /// Update Tab.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
}
/// <summary>
- /// Get Tab attribues.
+ /// Get Tab style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <returns>The default tab style.</returns>
+ /// <since_tizen> 8 </since_tizen>
protected override ViewStyle GetViewStyle()
{
return new TabStyle();
/// <summary>
/// Theme change callback when theme is changed, this callback will be trigger.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="sender">The sender</param>
+ /// <param name="e">The event data</param>
+ /// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- TabStyle tempAttributes = StyleManager.Instance.GetViewStyle(style) as TabStyle;
- if (tempAttributes != null)
+ TabStyle tabStyle = StyleManager.Instance.GetViewStyle(style) as TabStyle;
+ if (tabStyle != null)
{
- Style.CopyFrom(tempAttributes);
+ Style.CopyFrom(tabStyle);
}
}
}
}
- private void CreateUnderLineAttributes()
- {
- if (Style.UnderLine == null)
- {
- Style.UnderLine = new ViewStyle()
- {
- PositionUsesPivotPoint = true,
- ParentOrigin = Tizen.NUI.ParentOrigin.BottomLeft,
- PivotPoint = Tizen.NUI.PivotPoint.BottomLeft,
- };
- }
- }
-
private void CreateUnderLineAnimation()
{
if (underlineAni == null)
private Timer timer = null;
private readonly uint duration = 3000;
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Get style of toast.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public new ToastStyle Style => ViewStyle as ToastStyle;
static Toast() { }
/// <summary>
/// The constructor of the Toast class with specific Style.
/// </summary>
- /// <param name="style">Construct Style</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Toast(ToastStyle style) : base(style)
+ /// <param name="toastStyle">Construct Style</param>
+ /// <since_tizen> 8 </since_tizen>
+ public Toast(ToastStyle toastStyle) : base(toastStyle)
{
Initialize();
}
/// Constructor of the Toast class with special style.
/// </summary>
/// <param name="style"> style name </param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Toast(string style) : base(style)
{
Initialize();
}
/// <summary>
- /// Apply style.
+ /// Apply style to toast.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="viewStyle">The style to apply.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void ApplyStyle(ViewStyle viewStyle)
{
base.ApplyStyle(viewStyle);
}
/// <summary>
- /// Get Toast attribues.
+ /// Get Toast style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <returns>The default toast style.</returns>
+ /// <since_tizen> 8 </since_tizen>
protected override ViewStyle GetViewStyle()
{
return new ToastStyle();
/// <summary>
/// Return default Button style
/// </summary>
- internal protected override ViewStyle GetAttributes()
+ internal protected override ViewStyle GetViewStyle()
{
ButtonStyle style = new ButtonStyle
{
/// <summary>
/// Return default CheckBox style
/// </summary>
- internal protected override ViewStyle GetAttributes()
+ internal protected override ViewStyle GetViewStyle()
{
ButtonStyle style = new ButtonStyle
{
/// <summary>
/// Return default DropDown style
/// </summary>
- internal protected override ViewStyle GetAttributes()
+ internal protected override ViewStyle GetViewStyle()
{
DropDownStyle style = new DropDownStyle
{
/// <summary>
/// Return default DropDownItem style
/// </summary>
- internal protected override ViewStyle GetAttributes()
+ internal protected override ViewStyle GetViewStyle()
{
DropDownItemStyle style = new DropDownItemStyle
{
/// <summary>
/// Return default Popup style
/// </summary>
- internal protected override ViewStyle GetAttributes()
+ internal protected override ViewStyle GetViewStyle()
{
PopupStyle style = new PopupStyle
{
/// <summary>
/// Return default Progress style
/// </summary>
- internal protected override ViewStyle GetAttributes()
+ internal protected override ViewStyle GetViewStyle()
{
ProgressStyle style = new ProgressStyle
{
/// <summary>
/// Return default RadioButton style
/// </summary>
- internal protected override ViewStyle GetAttributes()
+ internal protected override ViewStyle GetViewStyle()
{
ButtonStyle style = new ButtonStyle
{
/// <summary>
/// Return default Slider style
/// </summary>
- internal protected override ViewStyle GetAttributes()
+ internal protected override ViewStyle GetViewStyle()
{
SliderStyle style = new SliderStyle
{
/// <summary>
/// Return default Switch style
/// </summary>
- internal protected override ViewStyle GetAttributes()
+ internal protected override ViewStyle GetViewStyle()
{
SwitchStyle style = new SwitchStyle
{
/// <summary>
/// Return default Tab style
/// </summary>
- internal protected override ViewStyle GetAttributes()
+ internal protected override ViewStyle GetViewStyle()
{
TabStyle style = new TabStyle
{
/// <summary>
/// Return default Toast style
/// </summary>
- internal protected override ViewStyle GetAttributes()
+ internal protected override ViewStyle GetViewStyle()
{
ToastStyle style = new ToastStyle
{
namespace Tizen.NUI.Components
{
/// <summary>
- /// ButtonAttributes is a class which saves Button's ux data.
+ /// ButtonStyle is a class which saves Button's ux data.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public class ButtonStyle : ControlStyle
{
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
/// <summary>
/// Creates a new instance of a ButtonStyle.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ButtonStyle() : base()
{
InitSubStyle();
/// Creates a new instance of a ButtonStyle with style.
/// </summary>
/// <param name="style">Create ButtonStyle by style customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ButtonStyle(ButtonStyle style) : base(style)
{
if(style == null)
/// <summary>
/// Overlay image's Style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Overlay { get; set; }
/// <summary>
/// Text's Style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public TextLabelStyle Text { get; set; }
/// <summary>
/// Icon's Style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Icon { get; set; }
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Flag to decide Button can be selected or not.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public bool? IsSelectable
{
get => (bool?)GetValue(IsSelectableProperty);
set => SetValue(IsSelectableProperty, value);
}
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Flag to decide selected state in Button.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public bool? IsSelected
{
get => (bool?)GetValue(IsSelectedProperty);
/// <summary>
/// Flag to decide button can be selected or not.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public bool? IsEnabled
{
get => (bool?)GetValue(IsEnabledProperty);
/// <summary>
/// Icon relative orientation.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Button.IconOrientation? IconRelativeOrientation
{
get => (Button.IconOrientation?)GetValue(IconRelativeOrientationProperty);
set => SetValue(IconRelativeOrientationProperty, value);
}
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Icon padding in Button, work only when show icon and text.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public Extents IconPadding
{
get
set => SetValue(IconPaddingProperty, value);
}
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Text padding in Button, work only when show icon and text.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
public Extents TextPadding
{
get
set => SetValue(TextPaddingProperty, value);
}
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <summary>
+ /// Style's clone function.
+ /// </summary>
+ /// <param name="bindableObject">The style that need to copy.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void CopyFrom(BindableObject bindableObject)
{
base.CopyFrom(bindableObject);
{
if (null != buttonStyle.Overlay)
{
- Overlay.CopyFrom(buttonStyle.Overlay);
+ Overlay?.CopyFrom(buttonStyle.Overlay);
}
if (null != buttonStyle.Text)
{
- Text.CopyFrom(buttonStyle.Text);
+ Text?.CopyFrom(buttonStyle.Text);
}
if (null != buttonStyle.Icon)
{
- Icon.CopyFrom(buttonStyle.Icon);
+ Icon?.CopyFrom(buttonStyle.Icon);
}
IsSelectable = buttonStyle.IsSelectable;
if (null != dropDownStyle)
{
- Button.CopyFrom(dropDownStyle.Button);
- HeaderText.CopyFrom(dropDownStyle.HeaderText);
- ListBackgroundImage.CopyFrom(dropDownStyle.ListBackgroundImage);
+ Button?.CopyFrom(dropDownStyle.Button);
+ HeaderText?.CopyFrom(dropDownStyle.HeaderText);
+ ListBackgroundImage?.CopyFrom(dropDownStyle.ListBackgroundImage);
SpaceBetweenButtonTextAndIcon = dropDownStyle.SpaceBetweenButtonTextAndIcon;
ListRelativeOrientation = dropDownStyle.ListRelativeOrientation;
- ListMargin.CopyFrom(dropDownStyle.ListMargin);
+ ListMargin?.CopyFrom(dropDownStyle.ListMargin);
SelectedItemIndex = dropDownStyle.SelectedItemIndex;
- ListPadding.CopyFrom(dropDownStyle.ListPadding);
+ ListPadding?.CopyFrom(dropDownStyle.ListPadding);
}
}
if (null != dropDownItemStyle)
{
- Text.CopyFrom(dropDownItemStyle.Text);
- Icon.CopyFrom(dropDownItemStyle.Icon);
- CheckImage.CopyFrom(dropDownItemStyle.CheckImage);
+ Text?.CopyFrom(dropDownItemStyle.Text);
+ Icon?.CopyFrom(dropDownItemStyle.Icon);
+ CheckImage?.CopyFrom(dropDownItemStyle.CheckImage);
CheckImageGapToBoundary = dropDownItemStyle.CheckImageGapToBoundary;
IsSelected = dropDownItemStyle.IsSelected;
}
/// <summary>
/// LoadingStyle is a class which saves Loading's ux data.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public class LoadingStyle : ControlStyle
{
static LoadingStyle() { }
/// <summary>
/// Creates a new instance of a LoadingStyle.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public LoadingStyle() : base() { }
/// <summary>
/// Creates a new instance of a LoadingStyle with style.
/// </summary>
/// <param name="style">Create LoadingStyle by style customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public LoadingStyle(LoadingStyle style) : base(style)
{
if(null == style)
/// <summary>
/// Gets or sets loading image resources.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public string[] Images { get; set; }
/// <summary>
/// Gets or sets loading image size.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Size LoadingSize { get; set; }
/// <summary>
/// Gets or sets loading frame per second.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Selector<int?> FrameRate { get; set; } = new Selector<int?>();
/// <summary>
- /// Attributes's clone function.
+ /// Style's clone function.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="bindableObject">The style that need to copy.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void CopyFrom(BindableObject bindableObject)
{
base.CopyFrom(bindableObject);
{
if (null != loadingStyle.FrameRate)
{
- FrameRate.Clone(loadingStyle.FrameRate);
+ FrameRate?.Clone(loadingStyle.FrameRate);
}
if (null != loadingStyle.LoadingSize)
{
}
if (null != paginationStyle.IndicatorImageURL)
{
- IndicatorImageURL.Clone(paginationStyle.IndicatorImageURL);
+ IndicatorImageURL?.Clone(paginationStyle.IndicatorImageURL);
}
IndicatorSpacing = paginationStyle.IndicatorSpacing;
}
/// <summary>
/// PopupStyle is a class which saves Popup's ux data.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public class PopupStyle : ControlStyle
{
static PopupStyle() { }
/// <summary>
/// Creates a new instance of a PopupStyle.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public PopupStyle() : base()
{
InitSubStyle();
/// Creates a new instance of a PopupStyle with style.
/// </summary>
/// <param name="style">Create PopupStyle by style customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public PopupStyle(PopupStyle style) : base(style)
{
InitSubStyle();
}
/// <summary>
- /// Title Text's Style.
+ /// Title Text's style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public TextLabelStyle Title { get; set; }
/// <summary>
- /// Popup button's attributes.
+ /// Popup button's style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ButtonStyle Buttons { get; set; }
/// <summary>
- /// Attributes's clone function.
+ /// Style's clone function.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="bindableObject">The style that need to copy.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void CopyFrom(BindableObject bindableObject)
{
base.CopyFrom(bindableObject);
- PopupStyle popupAttributes = bindableObject as PopupStyle;
- if (popupAttributes != null)
+ PopupStyle popupStyle = bindableObject as PopupStyle;
+ if (popupStyle != null)
{
- if (popupAttributes.Title != null)
+ if (popupStyle.Title != null)
{
- Title.CopyFrom(popupAttributes.Title);
+ Title?.CopyFrom(popupStyle.Title);
}
- if (popupAttributes.Buttons != null)
+ if (popupStyle.Buttons != null)
{
- Buttons.CopyFrom(popupAttributes.Buttons);
+ Buttons?.CopyFrom(popupStyle.Buttons);
}
}
}
/// <summary>
/// ProgressStyle is a class which saves Progress's ux data.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public class ProgressStyle : ControlStyle
{
static ProgressStyle() { }
/// <summary>
/// Creates a new instance of a ProgressStyle.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ProgressStyle() : base()
{
InitSubStyle();
/// Creates a new instance of a ProgressStyle with style.
/// </summary>
/// <param name="style">Create ProgressStyle by style customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ProgressStyle(ProgressStyle style) : base(style)
{
if (null == style) return;
/// <summary>
/// Get or set track image.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Track { get; set; }
/// <summary>
/// Get or set progress image.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Progress { get; set; }
/// <summary>
/// Get or set buffer image.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Buffer { get; set; }
/// <summary>
- /// Clone function.
+ /// Style's clone function.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="bindableObject">The style that need to copy.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void CopyFrom(BindableObject bindableObject)
{
base.CopyFrom(bindableObject);
{
if (null != progressStyle.Track)
{
- Track.CopyFrom(progressStyle.Track);
+ Track?.CopyFrom(progressStyle.Track);
}
if (null != progressStyle.Progress)
{
- Progress.CopyFrom(progressStyle.Progress);
+ Progress?.CopyFrom(progressStyle.Progress);
}
if (null != progressStyle.Buffer)
{
- Buffer.CopyFrom(progressStyle.Buffer);
+ Buffer?.CopyFrom(progressStyle.Buffer);
}
}
}
/// <summary>
/// ScrollBarStyle is a class which saves Scrollbar's ux data.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public class ScrollBarStyle : ControlStyle
{
static ScrollBarStyle() { }
/// <summary>
/// Creates a new instance of a ScrollBarStyle.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ScrollBarStyle() : base()
{
InitSubStyle();
/// Creates a new instance of a ScrollBarStyle with style.
/// </summary>
/// <param name="style">Create ScrollBarStyle by style customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ScrollBarStyle(ScrollBarStyle style) : base(style)
{
if (null == style) return;
}
/// <summary>
- /// Get or set track image style
+ /// Get or set track image style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Track { get; set; }
/// <summary>
- /// Get or set thumb image style
+ /// Get or set thumb image style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Thumb { get; set; }
/// <summary>
- /// Get or set direction type
+ /// Get or set direction type.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ScrollBar.DirectionType? Direction { get; set; }
/// <summary>
- /// Get or set duration
+ /// Get or set duration.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public uint Duration { get; set; }
/// <summary>
- /// Attributes's clone function.
+ /// Style's clone function.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="bindableObject">The style that need to copy.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void CopyFrom(BindableObject bindableObject)
{
base.CopyFrom(bindableObject);
{
if (null != scrollBarStyle.Track)
{
- Track.CopyFrom(scrollBarStyle.Track);
+ Track?.CopyFrom(scrollBarStyle.Track);
}
if (null != scrollBarStyle.Thumb)
{
- Thumb.CopyFrom(scrollBarStyle.Thumb);
+ Thumb?.CopyFrom(scrollBarStyle.Thumb);
}
Direction = scrollBarStyle.Direction;
/// <summary>
/// SliderStyle is a class which saves Slider's ux data.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public class SliderStyle : ControlStyle
{
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
/// <summary>
/// Creates a new instance of a SliderStyle.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public SliderStyle() : base()
{
IndicatorType = Slider.IndicatorType.None;
/// Creates a new instance of a SliderStyle with style.
/// </summary>
/// <param name="style">Create SliderStyle by style customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public SliderStyle(SliderStyle style) : base(style)
{
if(style == null)
/// <summary>
/// Get or set background track.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Track { get; set; }
/// <summary>
/// Get or set slided track.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Progress { get; set; }
/// <summary>
/// Get or set thumb.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Thumb { get; set; }
/// <summary>
/// Get or set low indicator image.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle LowIndicatorImage { get; set; }
/// <summary>
/// Get or set high indicator image.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle HighIndicatorImage { get; set; }
/// <summary>
/// Get or set low indicator text.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public TextLabelStyle LowIndicator { get; set; }
/// <summary>
/// Get or set high indicator text.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public TextLabelStyle HighIndicator { get; set; }
/// <summary>
/// Get or set Indicator type
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public IndicatorType? IndicatorType
{
get => (IndicatorType?)GetValue(IndicatorTypeProperty);
/// <summary>
/// Get or set track thickness
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public uint? TrackThickness
{
get => (uint?)GetValue(TrackThicknessProperty);
/// <summary>
/// Get or set space between track and indicator
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public uint? SpaceBetweenTrackAndIndicator
{
get => (uint?)GetValue(SpaceBetweenTrackAndIndicatorProperty);
/// <summary>
/// Get or set space between track and indicator
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Extents TrackPadding
{
get
}
/// <summary>
- /// Attributes's clone function.
+ /// Style's clone function.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="bindableObject">The style that need to copy.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void CopyFrom(BindableObject bindableObject)
{
base.CopyFrom(bindableObject);
- SliderStyle sliderAttributes = bindableObject as SliderStyle;
+ SliderStyle sliderStyle = bindableObject as SliderStyle;
- if (null != sliderAttributes)
+ if (null != sliderStyle)
{
- if (sliderAttributes.Track != null)
+ if (sliderStyle.Track != null)
{
- if (null == Track)
- {
- Track = new ImageViewStyle();
- }
- Track.CopyFrom(sliderAttributes.Track);
+ Track?.CopyFrom(sliderStyle.Track);
}
- if (sliderAttributes.Progress != null)
+ if (sliderStyle.Progress != null)
{
- if (null == Progress)
- {
- Progress = new ImageViewStyle();
- }
- Progress.CopyFrom(sliderAttributes.Progress);
+ Progress?.CopyFrom(sliderStyle.Progress);
}
- if (sliderAttributes.Thumb != null)
+ if (sliderStyle.Thumb != null)
{
- if (null == Thumb)
- {
- Thumb = new ImageViewStyle();
- }
- Thumb.CopyFrom(sliderAttributes.Thumb);
+ Thumb?.CopyFrom(sliderStyle.Thumb);
}
- if (sliderAttributes.LowIndicatorImage != null)
+ if (sliderStyle.LowIndicatorImage != null)
{
- if (null == LowIndicatorImage)
- {
- LowIndicatorImage = new ImageViewStyle();
- }
- LowIndicatorImage.CopyFrom(sliderAttributes.LowIndicatorImage);
+ LowIndicatorImage?.CopyFrom(sliderStyle.LowIndicatorImage);
}
- if (sliderAttributes.HighIndicatorImage != null)
+ if (sliderStyle.HighIndicatorImage != null)
{
- if (null == HighIndicatorImage)
- {
- HighIndicatorImage = new ImageViewStyle();
- }
- HighIndicatorImage.CopyFrom(sliderAttributes.HighIndicatorImage);
+ HighIndicatorImage?.CopyFrom(sliderStyle.HighIndicatorImage);
}
- if (sliderAttributes.LowIndicator != null)
+ if (sliderStyle.LowIndicator != null)
{
- if (null == LowIndicator)
- {
- LowIndicator = new TextLabelStyle();
- }
- LowIndicator.CopyFrom(sliderAttributes.LowIndicator);
+ LowIndicator?.CopyFrom(sliderStyle.LowIndicator);
}
- if (sliderAttributes.HighIndicator != null)
+ if (sliderStyle.HighIndicator != null)
{
- if (null == HighIndicator)
- {
- HighIndicator = new TextLabelStyle();
- }
- HighIndicator.CopyFrom(sliderAttributes.HighIndicator);
+ HighIndicator?.CopyFrom(sliderStyle.HighIndicator);
}
- if (sliderAttributes.TrackThickness != null)
+ if (sliderStyle.TrackThickness != null)
{
- TrackThickness = sliderAttributes.TrackThickness;
+ TrackThickness = sliderStyle.TrackThickness;
}
- if (sliderAttributes.TrackPadding != null)
+ if (sliderStyle.TrackPadding != null)
{
- TrackPadding = sliderAttributes.TrackPadding;
+ TrackPadding = sliderStyle.TrackPadding;
}
}
}
/// <summary>
/// SwitchStyle is a class which saves Switch's ux data.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public class SwitchStyle : ButtonStyle
{
static SwitchStyle() { }
/// <summary>
/// Creates a new instance of a SwitchStyle.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public SwitchStyle() : base()
{
InitSubStyle();
/// Creates a new instance of a SwitchStyle with style.
/// </summary>
/// <param name="style">Create SwitchStyle by style customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public SwitchStyle(SwitchStyle style) : base(style)
{
if(null == style)
/// <summary>
/// Thumb image's style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Thumb { get; set; }
/// <summary>
/// Track image's style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ImageViewStyle Track { get; set; }
/// <summary>
/// Style's clone function.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="bindableObject">The style that need to copy.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void CopyFrom(BindableObject bindableObject)
{
base.CopyFrom(bindableObject);
{
if (null != switchStyle.Track)
{
- Track.CopyFrom(switchStyle.Track);
+ Track?.CopyFrom(switchStyle.Track);
}
if (null != switchStyle.Thumb)
{
- Thumb.CopyFrom(switchStyle.Thumb);
+ Thumb?.CopyFrom(switchStyle.Thumb);
}
}
}
/// <summary>
/// TabStyle is a class which saves Tab's ux data.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public class TabStyle : ControlStyle
{
static TabStyle() { }
/// <summary>
/// Creates a new instance of a TabStyle.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public TabStyle() : base()
{
ItemPadding = new Extents(0, 0, 0, 0);
/// Creates a new instance of a TabStyle with style.
/// </summary>
/// <param name="style">Create TabStyle by style customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public TabStyle(TabStyle style) : base(style)
{
UnderLine = new ViewStyle();
if (style.UnderLine != null)
{
- UnderLine.CopyFrom(style.UnderLine);
+ UnderLine?.CopyFrom(style.UnderLine);
}
if (style.Text != null)
{
- Text.CopyFrom(style.Text);
+ Text?.CopyFrom(style.Text);
}
if (style.ItemPadding != null)
if (null != style.UnderLine)
{
- UnderLine.CopyFrom(style.UnderLine);
+ UnderLine?.CopyFrom(style.UnderLine);
}
if (null != style.Text)
{
- Text.CopyFrom(style.Text);
+ Text?.CopyFrom(style.Text);
}
}
/// <summary>
- /// UnderLine's attributes.
+ /// UnderLine's style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ViewStyle UnderLine { get; set; }
/// <summary>
- /// Text's attributes.
+ /// Text's style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public TextLabelStyle Text { get; set; }
/// <summary>
/// Flag to decide if item is fill with item text's natural width.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public bool UseTextNaturalSize { get; set; }
/// <summary>
/// Gap between items.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public int ItemSpace { get; set; }
/// <summary>
/// Space in Tab.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public Extents ItemPadding { get; set; }
/// <summary>
- /// Attributes's clone function.
+ /// Style's clone function.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="bindableObject">The style that need to copy.</param>
+ /// <since_tizen> 8 </since_tizen>>
public override void CopyFrom(BindableObject bindableObject)
{
base.CopyFrom(bindableObject);
{
if (null != tabStyle.ItemPadding)
{
- ItemPadding.CopyFrom(tabStyle.ItemPadding);
+ ItemPadding?.CopyFrom(tabStyle.ItemPadding);
}
ItemSpace = tabStyle.ItemSpace;
if (null != tabStyle.UnderLine)
{
- UnderLine.CopyFrom(tabStyle.UnderLine);
+ UnderLine?.CopyFrom(tabStyle.UnderLine);
}
if (null != tabStyle.Text)
{
- Text.CopyFrom(tabStyle.Text);
+ Text?.CopyFrom(tabStyle.Text);
}
}
}
/// <summary>
/// ToastStyle is a class which saves Toast's ux data.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public class ToastStyle : ControlStyle
{
static ToastStyle() { }
/// <summary>
/// Creates a new instance of a ToastStyle.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ToastStyle() : base()
{
InitSubStyle();
/// Creates a new instance of a ToastStyle with Style.
/// </summary>
/// <param name="style">Create ToastStyle by Style customized by user.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public ToastStyle(ToastStyle style) : base(style)
{
InitSubStyle();
/// <summary>
/// Gets or sets toast show duration time.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public uint? Duration { get; set; }
/// <summary>
/// Text's Style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public TextLabelStyle Text { get; set; }
/// <summary>
/// Style's clone function.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <param name="bindableObject">The style that need to copy.</param>
+ /// <since_tizen> 8 </since_tizen>
public override void CopyFrom(BindableObject bindableObject)
{
base.CopyFrom(bindableObject);
{
if (null != toastStyle.Text)
{
- Text.CopyFrom(toastStyle.Text);
+ Text?.CopyFrom(toastStyle.Text);
}
Duration = toastStyle.Duration;
}
* limitations under the License.
*
*/
-using System.ComponentModel;
using Tizen.NUI.BaseComponents;
namespace Tizen.NUI.Components
/// <summary>
/// StyleBase class.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public class StyleBase
{
/// <summary>
/// StyleBase construct.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public StyleBase()
{
}
+
/// <summary>
/// Content object.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
protected object Content
{
get;
set;
}
+
/// <summary>
- /// Get attributes.
+ /// Get view style.
/// </summary>
- /// <returns>Attributes</returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected internal virtual ViewStyle GetAttributes()
+ /// <returns>ViewStyle</returns>
+ /// <since_tizen> 8 </since_tizen>
+ protected internal virtual ViewStyle GetViewStyle()
{
return Content as ViewStyle;
}
*/
using System;
using System.Collections.Generic;
-using System.ComponentModel;
using Tizen.NUI.BaseComponents;
namespace Tizen.NUI.Components
/// <summary>
/// StyleManager is a class to manager all style.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public sealed class StyleManager
{
private static readonly string defaultThemeName = "default";
/// <summary>
/// StyleManager construct.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
private StyleManager()
{
}
/// <summary>
/// An event for the theme changed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public event EventHandler<ThemeChangeEventArgs> ThemeChangedEvent
{
add
/// <summary>
/// StyleManager static instance.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public static StyleManager Instance { get; } = new StyleManager();
/// <summary>
/// Style theme.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public string Theme
{
get
/// <param name="theme">Theme.</param>
/// <param name="styleType">Style type.</param>
/// <param name="bDefault">Flag to decide if it is default style.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public void RegisterStyle(string style, string theme, Type styleType, bool bDefault = false)
{
if (style == null)
}
/// <summary>
- /// Get attributes by style.
+ /// Get style.
/// </summary>
/// <param name="style">Style name.</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <returns>The style corresponding to style name .</returns>
+ /// <since_tizen> 8 </since_tizen>
public ViewStyle GetViewStyle(string style)
{
if (style == null)
if (themeStyleSet.ContainsKey(style) && themeStyleSet[style].ContainsKey(Theme))
{
- return (themeStyleSet[style][Theme])?.GetAttributes();
+ return (themeStyleSet[style][Theme])?.GetViewStyle();
}
else if (defaultStyleSet.ContainsKey(style))
{
- return (defaultStyleSet[style])?.GetAttributes();
+ return (defaultStyleSet[style])?.GetViewStyle();
}
return null;
/// <param name="targetTheme">Theme</param>
/// <param name="component">The type of ComponentStyle</param>
/// <param name="style">The type of style</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public void RegisterComponentStyle(string targetTheme, Type component, Type style)
{
if (targetTheme == null)
/// Get components style in the current theme.
/// </summary>
/// <param name="component">The type of component</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <returns>The style of the component.</returns>
+ /// <since_tizen> 8 </since_tizen>
public ViewStyle GetComponentStyle(Type component)
{
var currentTheme = theme;
return null;
}
- return (componentStyleByTheme[currentTheme][component])?.GetAttributes();
+ return (componentStyleByTheme[currentTheme][component])?.GetViewStyle();
}
/// <summary>
/// ThemeChangeEventArgs is a class to record theme change event arguments which will sent to user.
/// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public class ThemeChangeEventArgs : EventArgs
{
/// <summary>
/// CurrentTheme
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public string CurrentTheme;
}