- /// 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 static readonly BindableProperty PositionZProperty = BindableProperty.Create(nameof(PositionZ), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- if (newValue != null)
- {
- if (viewStyle.position == null)
- {
- if ((float)newValue == 0) return;
- }
- viewStyle.position = new Position(viewStyle.Position?.X ?? 0, viewStyle.Position?.Y ?? 0, (float)newValue);
- }
- },
- defaultValueCreator: (bindable) =>
- {
- return ((ViewStyle)bindable).position?.Z;
- });
- /// 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 static readonly BindableProperty OrientationProperty = BindableProperty.Create(nameof(Orientation), typeof(Rotation), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- viewStyle.orientation = (Rotation)newValue;
- },
- defaultValueCreator: (bindable) =>
- {
- var viewStyle = (ViewStyle)bindable;
- return viewStyle.orientation;
- });
- /// 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 static readonly BindableProperty ScaleProperty = BindableProperty.Create(nameof(Scale), typeof(Vector3), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- viewStyle.scale = (Vector3)newValue;
- if (viewStyle.scale != null && viewStyle.scale.X == 1.0f && viewStyle.scale.Y == 1.0f && viewStyle.scale.Z == 1.0f) return;
- },
- defaultValueCreator: (bindable) =>
- {
- var viewStyle = (ViewStyle)bindable;
- return viewStyle.scale;
- });
- /// 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 static readonly BindableProperty ScaleXProperty = BindableProperty.Create(nameof(ScaleX), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- if (newValue != null)
- {
- if (viewStyle.scale == null)
- {
- if ((float)newValue == 1.0f) return;
- }
- viewStyle.scale = new Vector3((float)newValue, viewStyle.scale?.Y ?? 0, viewStyle.scale?.Z ?? 0);
- }
- },
- defaultValueCreator: (bindable) =>
- {
- return ((ViewStyle)bindable).scale?.X;
- });
- /// 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 static readonly BindableProperty ScaleYProperty = BindableProperty.Create(nameof(ScaleY), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- if (newValue != null)
- {
- if (viewStyle.scale == null)
- {
- if ((float)newValue == 1.0f) return;
- }
- viewStyle.scale = new Vector3(viewStyle.scale?.X ?? 0, (float)newValue, viewStyle.scale?.Z ?? 0);
- }
- },
- defaultValueCreator: (bindable) =>
- {
- return ((ViewStyle)bindable).scale?.Y;
- });
- /// 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 static readonly BindableProperty ScaleZProperty = BindableProperty.Create(nameof(ScaleZ), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- if (newValue != null)
- {
- if (viewStyle.scale == null)
- {
- if ((float)newValue == 1.0f) return;
- }
- viewStyle.scale = new Vector3(viewStyle.scale?.X ?? 0, viewStyle.scale?.Y ?? 0, (float)newValue);
- }
- },
- defaultValueCreator: (bindable) =>
- {
- return ((ViewStyle)bindable).scale?.Z;
- });
- /// 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 static readonly BindableProperty NameProperty = BindableProperty.Create(nameof(Name), typeof(string), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- viewStyle.name = (string)newValue;
- },
- defaultValueCreator: (bindable) =>
- {
- var viewStyle = (ViewStyle)bindable;
- return viewStyle.name;
- });
- /// 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 static readonly BindableProperty SensitiveProperty = BindableProperty.Create(nameof(Sensitive), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- viewStyle.sensitive = (bool?)newValue;
- },
- defaultValueCreator: (bindable) =>
- {
- var viewStyle = (ViewStyle)bindable;
- return viewStyle.sensitive;
- });
- /// 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 static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create(nameof(LeaveRequired), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- viewStyle.leaveRequired = (bool?)newValue;
- },
- defaultValueCreator: (bindable) =>
- {
- var viewStyle = (ViewStyle)bindable;
- return viewStyle.leaveRequired;
- });
- /// 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 static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create(nameof(InheritOrientation), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- viewStyle.inheritOrientation = (bool?)newValue;
- },
- defaultValueCreator: (bindable) =>
- {
- var viewStyle = (ViewStyle)bindable;
- return viewStyle.inheritOrientation;
- });
- /// 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 static readonly BindableProperty InheritScaleProperty = BindableProperty.Create(nameof(InheritScale), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- viewStyle.inheritScale = (bool?)newValue;
- },
- defaultValueCreator: (bindable) =>
- {
- var viewStyle = (ViewStyle)bindable;
- return viewStyle.inheritScale;
- });
- /// 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 static readonly BindableProperty DrawModeProperty = BindableProperty.Create(nameof(DrawMode), typeof(DrawModeType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var viewStyle = (ViewStyle)bindable;
- viewStyle.drawMode = (DrawModeType?)newValue;
- },
- defaultValueCreator: (bindable) =>
- {
- var viewStyle = (ViewStyle)bindable;
- return viewStyle.drawMode;
- });
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.