return base.HandleControlStateOnTouch(touch);
}
-
/// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
protected override void OnEnabled(bool enabled)
{
base.OnEnabled(enabled);
- //Sensitive = false;
UpdateState();
}
/// 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 IsEnabledProperty = View.IsEnabledProperty;
-
- /// 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 IsSelectedProperty = BindableProperty.Create(nameof(IsSelected), typeof(bool), typeof(Button), false, propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (Button)bindable;
return instance.state;
});
- /// <summary>
- /// IsEnabledProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty IsEnabledProperty = BindableProperty.Create(nameof(IsEnabled), typeof(bool), typeof(Progress), true, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var instance = (Progress)bindable;
- if (newValue != null)
- {
- bool newEnabled = (bool)newValue;
- if (instance.isEnabled != newEnabled)
- {
- instance.isEnabled = newEnabled;
- instance.Sensitive = newEnabled;
- instance.UpdateStates();
- }
- }
- },
- defaultValueCreator: (bindable) => ((Progress)bindable).isEnabled);
-
/// This needs to be considered more if public-open is necessary.
private ProgressStatusType state = ProgressStatusType.Determinate;
private float currentValue = 0;
private float bufferValue = 0;
private Animation indeterminateAnimation = null;
- bool isEnabled = true;
static Progress() { }
/// <summary>
}
}
- /// <summary>
- /// Flag to decide enable or disable in Progress.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool IsEnabled
- {
- get
- {
- return (bool)GetValue(IsEnabledProperty);
- }
- set
- {
- SetValue(IsEnabledProperty, value);
- }
- }
-
/// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnInitialize()
}
}
+ /// <inheritdoc/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void OnEnabled(bool enabled)
+ {
+ base.OnEnabled(enabled);
+ UpdateStates();
+ }
+
private void Initialize()
{
AccessibilityHighlightable = true;
{
MeasureChild();
LayoutChild();
+ }
- Sensitive = IsEnabled;
+ /// <inheritdoc/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void OnEnabled(bool enabled)
+ {
+ base.OnEnabled(enabled);
+ UpdateState();
}
+
/// FIXME!! This has to be done in Element or View class.
/// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
/// Property of boolean Enable flag.
/// </summary>
/// <since_tizen> 9 </since_tizen>
- public static readonly BindableProperty IsEnabledProperty = BindableProperty.Create(nameof(IsEnabled), typeof(bool), typeof(RecyclerViewItem), true, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var instance = (RecyclerViewItem)bindable;
- if (newValue != null)
- {
- bool newEnabled = (bool)newValue;
- if (instance.isEnabled != newEnabled)
- {
- instance.isEnabled = newEnabled;
- instance.UpdateState();
- }
- }
- },
- defaultValueCreator: (bindable) => ((RecyclerViewItem)bindable).isEnabled);
+ public static readonly BindableProperty IsEnabledProperty = View.IsEnabledProperty;
/// <summary>
/// Property of boolean Selected flag.
private bool isSelected = false;
private bool isSelectable = true;
- private bool isEnabled = true;
private RecyclerViewItemStyle ItemStyle => ViewStyle as RecyclerViewItemStyle;
static RecyclerViewItem() { }
/// <since_tizen> 9 </since_tizen>
public bool IsEnabled
{
- get => (bool)GetValue(IsEnabledProperty);
- set => SetValue(IsEnabledProperty, value);
+ get => base.IsEnabled;
+ set
+ {
+ base.IsEnabled = value;
+ }
}
/// <summary>
}
/// <summary>
- /// Called when the control loses key input focus.
+ /// Called when the control loses key input focus.
/// Should be overridden by derived classes if they need to customize
/// what happens when the focus is lost.
/// </summary>
if (viewStyle != null)
{
//Extension = RecyclerViewItemStyle.CreateExtension();
- //FIXME : currently padding and margin are not applied by ApplyStyle automatically as missing binding features.
+ //FIXME : currently padding and margin are not applied by ApplyStyle automatically as missing binding features.
Padding = new Extents(viewStyle.Padding);
Margin = new Extents(viewStyle.Margin);
}
bool isFocused = false;
bool isPressed = false;
- bool isEnabled = true;
private void Initialize()
{
}
);
- /// <summary>
- /// IsEnabledProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty IsEnabledProperty = BindableProperty.Create(nameof(IsEnabled), typeof(bool), typeof(Slider), true, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var instance = (Slider)bindable;
- if (newValue != null)
- {
- bool newEnabled = (bool)newValue;
- if (instance.isEnabled != newEnabled)
- {
- instance.isEnabled = newEnabled;
- instance.Sensitive = newEnabled;
- instance.UpdateValue();
- }
- }
- },
- defaultValueCreator: (bindable) => ((Slider)bindable).isEnabled);
-
static Slider() { }
/// <summary>
}
}
- /// <summary>
- /// Flag to decide enable or disable in Slider.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool IsEnabled
- {
- get
- {
- return (bool)GetValue(IsEnabledProperty);
- }
- set
- {
- SetValue(IsEnabledProperty, value);
- }
- }
-
private Extents spaceBetweenTrackAndIndicator
{
get
UpdateValue();
}
+ /// <inheritdoc/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void OnEnabled(bool enabled)
+ {
+ base.OnEnabled(enabled);
+ UpdateValue();
+ }
+
private void CalculateCurrentValueByGesture(float offset)
{
currentSlidedOffset += offset;
});
/// 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 IsEnabledProperty = BindableProperty.Create(nameof(IsEnabled), typeof(bool?), typeof(ButtonStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var buttonStyle = (ButtonStyle)bindable;
- buttonStyle.isEnabled = (bool?)newValue;
- },
- defaultValueCreator: (bindable) =>
- {
- var buttonStyle = (ButtonStyle)bindable;
- return buttonStyle.isEnabled;
- });
- /// 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 IconRelativeOrientationProperty = BindableProperty.Create(nameof(IconRelativeOrientation), typeof(Button.IconOrientation?), typeof(ButtonStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
{
var buttonStyle = (ButtonStyle)bindable;
private bool? isSelectable;
private bool? isSelected;
- private bool? isEnabled;
private Button.IconOrientation? iconRelativeOrientation;
private Extents iconPadding;
private Extents textPadding;
/// <since_tizen> 8 </since_tizen>
public bool? IsEnabled
{
- get => (bool?)GetValue(IsEnabledProperty);
- set => SetValue(IsEnabledProperty, value);
+ get => (bool?)base.IsEnabled;
+ set
+ {
+ base.IsEnabled = value;
+ }
}
/// <summary>
var RecyclerViewItemStyle = (RecyclerViewItemStyle)bindable;
return RecyclerViewItemStyle.isSelected;
});
- /// 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 IsEnabledProperty = BindableProperty.Create(nameof(IsEnabled), typeof(bool?), typeof(RecyclerViewItemStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var RecyclerViewItemStyle = (RecyclerViewItemStyle)bindable;
- RecyclerViewItemStyle.isEnabled = (bool?)newValue;
- },
- defaultValueCreator: (bindable) =>
- {
- var RecyclerViewItemStyle = (RecyclerViewItemStyle)bindable;
- return RecyclerViewItemStyle.isEnabled;
- });
private bool? isSelectable;
private bool? isSelected;
- private bool? isEnabled;
static RecyclerViewItemStyle() { }
set => SetValue(IsSelectedProperty, value);
}
- /// <summary>
- /// Flag to decide RecyclerViewItem can be selected or not.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool? IsEnabled
- {
- get => (bool?)GetValue(IsEnabledProperty);
- set => SetValue(IsEnabledProperty, value);
- }
-
/// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
public override void CopyFrom(BindableObject bindableObject)
private float? borderlineWidth;
private Color borderlineColor;
private float? borderlineOffset;
+ private bool? isEnabled;
private Selector<ImageShadow> imageShadow;
private Selector<Shadow> boxShadow;
set => SetValue(ThemeChangeSensitiveProperty, value);
}
+ /// <summary>
+ /// Flag to decide View can be enabled user interaction or not.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool? IsEnabled
+ {
+ get => (bool?)GetValue(IsEnabledProperty);
+ set => SetValue(IsEnabledProperty, value);
+ }
+
/// <summary>
/// Allow null properties when merging it into other Theme.
propertyChanged: (bindable, oldValue, newValue) => ((ViewStyle)bindable).themeChangeSensitive = (bool?)newValue,
defaultValueCreator: (bindable) => ((ViewStyle)bindable).themeChangeSensitive
);
+
+ /// 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 IsEnabledProperty = BindableProperty.Create(nameof(IsEnabled), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var buttonStyle = (ViewStyle)bindable;
+ buttonStyle.isEnabled = (bool?)newValue;
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var buttonStyle = (ViewStyle)bindable;
+ return buttonStyle.isEnabled;
+ });
}
}