private readonly TriggerableSelector<string> resourceUrlSelector = new TriggerableSelector<string>(ResourceUrlProperty);
private readonly TriggerableSelector<Rectangle> borderSelector = new TriggerableSelector<Rectangle>(BorderProperty);
- /// 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 ImageViewStyle Style => new ImageViewStyle(this);
-
/// <summary>
/// Creates an initialized ImageView.
/// </summary>
{
}
- /// <summary>
- /// Create an instance and set properties from the given ImageView.
- /// </summary>
- /// <param name="imageView">The ImageView instance that includes property data.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public ImageViewStyle(ImageView imageView) : base(imageView)
- {
- }
-
/// 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 bool? PreMultipliedAlpha
{
}
- /// <summary>
- /// Create an instance and set properties from the given TextField.
- /// </summary>
- /// <param name="textField">The TextField instance that includes property data.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public TextFieldStyle(TextField textField) : base(textField)
- {
- }
-
/// 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 Selector<string> TranslatableText
{
}
- /// <summary>
- /// Create an instance and set properties from the given TextLabel.
- /// </summary>
- /// <param name="textLabel">The TextLabel instance that includes property data.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public TextLabelStyle(TextLabel textLabel) : base(textLabel)
- {
- }
-
/// 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 Selector<string> TranslatableText
CopyFrom(viewAttributes);
}
- /// <summary>
- /// Create an instance and set properties from the given view.
- /// </summary>
- /// <param name="view">The View that includes property data.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public ViewStyle(View view)
- {
- CopyPropertiesFromView(view);
- }
-
/// 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 string StyleName
static TextField() { }
- /// 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 TextFieldStyle Style => new TextFieldStyle(this);
-
/// <summary>
/// Creates the TextField control.
/// </summary>
private TextLabelSelectorData selectorData;
/// <summary>
- /// Return a copied Style instance of the TextLabel.
- /// </summary>
- /// <remarks>
- /// It returns copied style instance so that changing it does not effect to the view.
- /// Style setting is possible by using constructor or the function of <see cref="View.ApplyStyle"/>.
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public TextLabelStyle Style => new TextLabelStyle(this);
-
- /// <summary>
/// Creates the TextLabel control.
/// </summary>
/// <since_tizen> 3 </since_tizen>
internal View(global::System.IntPtr cPtr, bool cMemoryOwn, ViewStyle viewStyle, bool shown = true) : this(cPtr, cMemoryOwn, shown)
{
- if (!ThemeManager.ThemeApplied) return;
-
- if (viewStyle == null) UpdateStyle(); // Use style in the current theme
- else ApplyStyle(viewStyle.Clone()); // Use given style
+ InitializeStyle(viewStyle);
}
internal View(global::System.IntPtr cPtr, bool cMemoryOwn, bool shown = true) : base(Interop.View.Upcast(cPtr), cMemoryOwn)
{
return false;
}
+
+ private void InitializeStyle(ViewStyle style)
+ {
+ if (!ThemeManager.ThemeApplied) return;
+
+ if (viewStyle == null) UpdateStyle(); // Use style in the current theme
+ else ApplyStyle(viewStyle.Clone()); // Use given style
+ }
}
}