Class ViewStyle

Definition

Namespace:
Tizen.NUI.BaseComponents
Assembly:
Tizen.NUI.dll
API Level:
9

The base class of style attributes for a view.

C#
Copy
public class ViewStyle : BindableObject, IDynamicResourceHandler, IDisposable
Inheritance
Derived
Implements
IDisposable

Constructors

View Source

ViewStyle()

Create an empty style instance.

Declaration
C#
Copy
public ViewStyle()
API Level: 9
View Source

ViewStyle(ViewStyle)

Declaration
C#
Copy
public ViewStyle(ViewStyle viewAttributes)
Parameters
Type Name Description
ViewStyle viewAttributes

Fields

View Source

BackgroundColorProperty

Bindable property of BackgroundColor. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty BackgroundColorProperty
Field Value
Type Description
BindableProperty
View Source

BackgroundImageBorderProperty

Bindable property of BackgroundImageBorder. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty BackgroundImageBorderProperty
Field Value
Type Description
BindableProperty
View Source

BackgroundImageProperty

Bindable property of BackgroundImage. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty BackgroundImageProperty
Field Value
Type Description
BindableProperty
View Source

BorderlineColorProperty

Bindable property of BorderlineColor. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty BorderlineColorProperty
Field Value
Type Description
BindableProperty
View Source

BorderlineColorSelectorProperty

Bindable property of BorderlineColorSelector. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty BorderlineColorSelectorProperty
Field Value
Type Description
BindableProperty
View Source

BorderlineOffsetProperty

Bindable property of BorderlineOffset. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty BorderlineOffsetProperty
Field Value
Type Description
BindableProperty
View Source

BorderlineWidthProperty

Bindable property of BorderlineWidth. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty BorderlineWidthProperty
Field Value
Type Description
BindableProperty
View Source

BoxShadowProperty

Bindable property of BoxShadow. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty BoxShadowProperty
Field Value
Type Description
BindableProperty
View Source

ClippingModeProperty

Bindable property of ClippingMode. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty ClippingModeProperty
Field Value
Type Description
BindableProperty
View Source

ColorProperty

Bindable property of ColorSelector. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty ColorProperty
Field Value
Type Description
BindableProperty
View Source

CornerRadiusPolicyProperty

Bindable property of CornerRadiusPolicy. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty CornerRadiusPolicyProperty
Field Value
Type Description
BindableProperty
View Source

CornerRadiusProperty

Bindable property of CornerRadius. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty CornerRadiusProperty
Field Value
Type Description
BindableProperty
View Source

DrawModeProperty

Bindable property of DrawMode. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty DrawModeProperty
Field Value
Type Description
BindableProperty
View Source

FocusableChildrenProperty

Bindable property of FocusableChildren. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty FocusableChildrenProperty
Field Value
Type Description
BindableProperty
View Source

FocusableInTouchProperty

Bindable property of FocusableInTouch. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty FocusableInTouchProperty
Field Value
Type Description
BindableProperty
View Source

FocusableProperty

Bindable property of Focusable. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty FocusableProperty
Field Value
Type Description
BindableProperty
View Source

HeightForWidthProperty

Bindable property of HeightForWidth. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty HeightForWidthProperty
Field Value
Type Description
BindableProperty
View Source

HeightResizePolicyProperty

Bindable property of HeightResizePolicy. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty HeightResizePolicyProperty
Field Value
Type Description
BindableProperty
View Source

ImageShadowProperty

Bindable property of ImageShadow. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty ImageShadowProperty
Field Value
Type Description
BindableProperty
View Source

IsEnabledProperty

Declaration
C#
Copy
public static readonly BindableProperty IsEnabledProperty
Field Value
Type Description
BindableProperty
View Source

MarginProperty

Bindable property of Margin. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty MarginProperty
Field Value
Type Description
BindableProperty
View Source

MaximumSizeProperty

Bindable property of MaximumSize. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty MaximumSizeProperty
Field Value
Type Description
BindableProperty
View Source

MinimumSizeProperty

Bindable property of MinimumSize. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty MinimumSizeProperty
Field Value
Type Description
BindableProperty
View Source

OpacityProperty

Bindable property of Opacity. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty OpacityProperty
Field Value
Type Description
BindableProperty
View Source

OrientationProperty

Bindable property of Orientation. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty OrientationProperty
Field Value
Type Description
BindableProperty
View Source

PaddingProperty

Bindable property of Padding. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty PaddingProperty
Field Value
Type Description
BindableProperty
View Source

ParentOriginProperty

Bindable property of ParentOrigin. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty ParentOriginProperty
Field Value
Type Description
BindableProperty
View Source

PivotPointProperty

Bindable property of PivotPoint. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty PivotPointProperty
Field Value
Type Description
BindableProperty
View Source

Position2DProperty

Bindable property of Position2D. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty Position2DProperty
Field Value
Type Description
BindableProperty
View Source

PositionProperty

Bindable property of Position. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty PositionProperty
Field Value
Type Description
BindableProperty
View Source

PositionUsesPivotPointProperty

Bindable property of PositionUsesPivotPoint. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty PositionUsesPivotPointProperty
Field Value
Type Description
BindableProperty
View Source

PositionXProperty

Bindable property of PositionX. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty PositionXProperty
Field Value
Type Description
BindableProperty
View Source

PositionYProperty

Bindable property of PositionY. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty PositionYProperty
Field Value
Type Description
BindableProperty
View Source

Size2DProperty

Bindable property of Focusable. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty Size2DProperty
Field Value
Type Description
BindableProperty
View Source

SizeHeightProperty

Bindable property of SizeHeight. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty SizeHeightProperty
Field Value
Type Description
BindableProperty
View Source

SizeModeFactorProperty

Bindable property of SizeModeFactor. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty SizeModeFactorProperty
Field Value
Type Description
BindableProperty
View Source

SizeProperty

Bindable property of Size. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty SizeProperty
Field Value
Type Description
BindableProperty
View Source

SizeWidthProperty

Bindable property of SizeWidth. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty SizeWidthProperty
Field Value
Type Description
BindableProperty
View Source

ThemeChangeSensitiveProperty

Bindable property of ThemeChangeSensitive. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty ThemeChangeSensitiveProperty
Field Value
Type Description
BindableProperty
View Source

WidthForHeightProperty

Bindable property of WidthForHeight. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty WidthForHeightProperty
Field Value
Type Description
BindableProperty
View Source

WidthResizePolicyProperty

Bindable property of WidthResizePolicy. Do not open it.

Declaration
C#
Copy
public static readonly BindableProperty WidthResizePolicyProperty
Field Value
Type Description
BindableProperty

Properties

View Source

BackgroundColor

Gets or sets the color of the background of view. The mutually exclusive with "BackgroundImage". Setting it overwrites existing "BackgroundImage".

Declaration
C#
Copy
public Selector<Color> BackgroundColor { get; set; }
Property Value
Type Description
Selector<Color>
API Level: 9
View Source

BackgroundImage

Gets or sets the image resource url of the background of view. The mutually exclusive with "BackgroundColor". Setting it overwrites existing "BackgroundColor".

Declaration
C#
Copy
public Selector<string> BackgroundImage { get; set; }
Property Value
Type Description
Selector<String>
API Level: 9
View Source

BackgroundImageBorder

View BackgroundBorder

Declaration
C#
Copy
public Selector<Rectangle> BackgroundImageBorder { get; set; }
Property Value
Type Description
Selector<Rectangle>
View Source

BorderlineColor

The color for the borderline of the View.

Declaration
C#
Copy
public Color BorderlineColor { get; set; }
Property Value
Type Description
Color
API Level: 9
View Source

BorderlineColorSelector

The color selector for the borderline of the View.

Declaration
C#
Copy
public Selector<Color> BorderlineColorSelector { get; set; }
Property Value
Type Description
Selector<Color>
View Source

BorderlineOffset

The Relative offset for the borderline of the View. Recommended range : [-1.0f to 1.0f]. If -1.0f, draw borderline inside of the View. If 1.0f, draw borderline outside of the View. If 0.0f, draw borderline half inside and half outside.

Declaration
C#
Copy
public float? BorderlineOffset { get; set; }
Property Value
Type Description
Nullable<Single>
API Level: 9
View Source

BorderlineWidth

The width for the borderline of the View.

Declaration
C#
Copy
public float? BorderlineWidth { get; set; }
Property Value
Type Description
Nullable<Single>
API Level: 9
View Source

BoxShadow

Describes a box shaped shadow drawing for a View.

Declaration
C#
Copy
public Selector<Shadow> BoxShadow { get; set; }
Property Value
Type Description
Selector<Shadow>
API Level: 9
View Source

ClippingMode

Declaration
C#
Copy
public ClippingModeType? ClippingMode { get; set; }
Property Value
Type Description
Nullable<ClippingModeType>
View Source

Color

Color

Declaration
C#
Copy
public Selector<Color> Color { get; set; }
Property Value
Type Description
Selector<Color>
View Source

CornerRadius

The radius for the rounded corners of the View. The values in Vector4 are used in clockwise order from top-left to bottom-left : Vector4(top-left-corner, top-right-corner, bottom-right-corner, bottom-left-corner). Each radius will clamp internally to the half of smaller of the view's width or height.

Declaration
C#
Copy
public Vector4 CornerRadius { get; set; }
Property Value
Type Description
Vector4
API Level: 9
View Source

CornerRadiusPolicy

Whether the CornerRadius property value is relative (percentage [0.0f to 0.5f] of the view size) or absolute (in world units). It is absolute by default. When the policy is relative, the corner radius is relative to the smaller of the view's width and height.

Declaration
C#
Copy
public VisualTransformPolicyType? CornerRadiusPolicy { get; set; }
Property Value
Type Description
Nullable<VisualTransformPolicyType>
API Level: 9
View Source

DrawMode

Declaration
C#
Copy
public DrawModeType? DrawMode { get; set; }
Property Value
Type Description
Nullable<DrawModeType>
View Source

Focusable

Declaration
C#
Copy
public bool? Focusable { get; set; }
Property Value
Type Description
Nullable<Boolean>
View Source

FocusableChildren

Whether the children of this view can be focusable by keyboard navigation. If user sets this to false, the children of this view will not be focused. Note : Default value is true.

Declaration
C#
Copy
public bool? FocusableChildren { get; set; }
Property Value
Type Description
Nullable<Boolean>
View Source

FocusableInTouch

Whether this view can focus by touch. If Focusable is false, FocusableInTouch is disabled. If you want to have focus on touch, you need to set both Focusable and FocusableInTouch settings to true.

Declaration
C#
Copy
public bool? FocusableInTouch { get; set; }
Property Value
Type Description
Nullable<Boolean>
View Source

HeightForWidth

Declaration
C#
Copy
public bool? HeightForWidth { get; set; }
Property Value
Type Description
Nullable<Boolean>
View Source

HeightResizePolicy

Gets or sets the height resize policy to be used.

Declaration
C#
Copy
public ResizePolicyType? HeightResizePolicy { get; set; }
Property Value
Type Description
Nullable<ResizePolicyType>
API Level: 9
View Source

ImageShadow

Describes a shadow as an image for a View. It is null by default.

Declaration
C#
Copy
public Selector<ImageShadow> ImageShadow { get; set; }
Property Value
Type Description
Selector<ImageShadow>
Remarks

If BoxShadow is not null, the ImageShadow value will be ignored.

View Source

IncludeDefaultStyle

The flag that is used when creating a component with this style. If the value is true, it will include default component style defined in the default theme.

Declaration
C#
Copy
public bool IncludeDefaultStyle { get; set; }
Property Value
Type Description
Boolean
View Source

IsEnabled

Flag to decide View can be enabled user interaction or not.

Declaration
C#
Copy
public bool? IsEnabled { get; set; }
Property Value
Type Description
Nullable<Boolean>
View Source

Margin

Gets or sets the Margin for use in layout.

Declaration
C#
Copy
public Extents Margin { get; set; }
Property Value
Type Description
Extents
API Level: 9
View Source

MaximumSize

Gets or sets the maximum size the view can be assigned in size negotiation.

Declaration
C#
Copy
public Size2D MaximumSize { get; set; }
Property Value
Type Description
Size2D
API Level: 9
View Source

MinimumSize

Gets or sets the minimum size the view can be assigned in size negotiation.

Declaration
C#
Copy
public Size2D MinimumSize { get; set; }
Property Value
Type Description
Size2D
API Level: 9
View Source

Opacity

Defines view's opacity value.

Declaration
C#
Copy
public Selector<float?> Opacity { get; set; }
Property Value
Type Description
Selector<Nullable<Single>>
API Level: 9
View Source

Orientation

Declaration
C#
Copy
public Rotation Orientation { get; set; }
Property Value
Type Description
Rotation
View Source

Padding

Gets or sets the padding for use in layout.

Declaration
C#
Copy
public Extents Padding { get; set; }
Property Value
Type Description
Extents
API Level: 9
View Source

ParentOrigin

Gets or sets the origin of a view within its parent's area.
This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the parent, and (1.0, 1.0, 0.5) is the bottom-right corner.
The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).
A view's position is the distance between this origin and the view's anchor-point.

Declaration
C#
Copy
public Position ParentOrigin { get; set; }
Property Value
Type Description
Position
API Level: 9
View Source

PivotPoint

Gets or sets the pivot point of a view.
This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the view, and (1.0, 1.0, 0.5) is the bottom-right corner.
The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).
A view position is the distance between its parent origin and this pivot point.
A view's orientation is the rotation from its default orientation, the rotation is centered around its pivot point.

Declaration
C#
Copy
public Position PivotPoint { get; set; }
Property Value
Type Description
Position
API Level: 9
View Source

Position

Gets or sets the position of the view.

Declaration
C#
Copy
public Position Position { get; set; }
Property Value
Type Description
Position
API Level: 9
View Source

Position2D

Declaration
C#
Copy
public Position2D Position2D { get; set; }
Property Value
Type Description
Position2D
View Source

PositionUsesPivotPoint

Determines whether the pivot point should be used to determine the position of the view.

Declaration
C#
Copy
public bool? PositionUsesPivotPoint { get; set; }
Property Value
Type Description
Nullable<Boolean>
API Level: 9
View Source

PositionX

Declaration
C#
Copy
public float? PositionX { get; set; }
Property Value
Type Description
Nullable<Single>
View Source

PositionY

Declaration
C#
Copy
public float? PositionY { get; set; }
Property Value
Type Description
Nullable<Single>
View Source

Size

Sets the size of a view for the width, the height, and the depth.

Declaration
C#
Copy
public Size Size { get; set; }
Property Value
Type Description
Size
API Level: 9
View Source

Size2D

Declaration
C#
Copy
public Size2D Size2D { get; set; }
Property Value
Type Description
Size2D
View Source

SizeHeight

Gets or sets the height of the view.

Declaration
C#
Copy
public float? SizeHeight { get; set; }
Property Value
Type Description
Nullable<Single>
API Level: 9
View Source

SizeModeFactor

Gets or sets the relative to parent size factor of the view.
This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.
This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.

Declaration
C#
Copy
public Vector3 SizeModeFactor { get; set; }
Property Value
Type Description
Vector3
API Level: 9
View Source

SizeWidth

Gets or sets the width of the view.

Declaration
C#
Copy
public float? SizeWidth { get; set; }
Property Value
Type Description
Nullable<Single>
API Level: 9
View Source

SolidNull

Allow null properties when merging it into other Theme. If the value is true, the null properties reset target properties of the other ViewStyle with same key when merge. It is used in Merge(String), Merge(Theme). It is also used in GetStyle(String) when the Theme has a parent and needs to merge. Please note that it is false by default.

Declaration
C#
Copy
public bool SolidNull { get; set; }
Property Value
Type Description
Boolean
View Source

ThemeChangeSensitive

The ThemeChangeSensitive value of the View.

Declaration
C#
Copy
public bool? ThemeChangeSensitive { get; set; }
Property Value
Type Description
Nullable<Boolean>
View Source

WidthForHeight

Declaration
C#
Copy
public bool? WidthForHeight { get; set; }
Property Value
Type Description
Nullable<Boolean>
View Source

WidthResizePolicy

Gets or sets the width resize policy to be used.

Declaration
C#
Copy
public ResizePolicyType? WidthResizePolicy { get; set; }
Property Value
Type Description
Nullable<ResizePolicyType>
API Level: 9

Methods

View Source

Clone()

Create a cloned ViewStyle.

Declaration
C#
Copy
public ViewStyle Clone()
Returns
Type Description
ViewStyle
View Source

CopyFrom(BindableObject)

Copy properties of other ViewStyle to this.

Declaration
C#
Copy
public override void CopyFrom(BindableObject other)
Parameters
Type Name Description
BindableObject other

The other BindableProperty merge to this.

Overrides
View Source

Dispose()

Release instance.

Declaration
C#
Copy
public void Dispose()
API Level: 9
View Source

Dispose(Boolean)

Release instance.

Declaration
C#
Copy
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

If it true, the method has been called by a user's code. Otherwise the method has been called by the finalizer.

API Level: 9
View Source

OnPropertyChangedWithData(BindableProperty)

Method that is called when a bound property is changed.

Declaration
C#
Copy
protected override void OnPropertyChangedWithData(BindableProperty property)
Parameters
Type Name Description
BindableProperty property
Overrides

Implements

IDisposable

Extension Methods