/// The slider is a control to enable sliding an indicator between two values.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public class Slider : View
{
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty LowerBoundProperty = BindableProperty.Create("LowerBound", typeof(float), typeof(Slider), 0.0f, propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty LowerBoundProperty = BindableProperty.Create(nameof(LowerBound), typeof(float), typeof(Slider), 0.0f, propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.LOWER_BOUND, new Tizen.NUI.PropertyValue((float)newValue));
}
- Console.WriteLine("Slider LowerBoundProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.LOWER_BOUND).Get(out temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty UpperBoundProperty = BindableProperty.Create("UpperBound", typeof(float), typeof(Slider), 1.0f, propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty UpperBoundProperty = BindableProperty.Create(nameof(UpperBound), typeof(float), typeof(Slider), 1.0f, propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.UPPER_BOUND, new Tizen.NUI.PropertyValue((float)newValue));
}
- Console.WriteLine("Slider UpperBoundProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.UPPER_BOUND).Get(out temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty ValueProperty = BindableProperty.Create("Value", typeof(float), typeof(Slider), default(float), BindingMode.TwoWay, propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty ValueProperty = BindableProperty.Create(nameof(Value), typeof(float), typeof(Slider), default(float), BindingMode.TwoWay, propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
- Console.WriteLine("Slider ValueProperty Changed: oldValue: " + oldValue + ", newValue: " + newValue);
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.VALUE, new Tizen.NUI.PropertyValue((float)newValue));
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.VALUE).Get(out temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty TrackVisualProperty = BindableProperty.Create("TrackVisual", typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty TrackVisualProperty = BindableProperty.Create(nameof(TrackVisual), typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.TRACK_VISUAL, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
}
- Console.WriteLine("Slider TrackVisualProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.TRACK_VISUAL).Get(temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty HandleVisualProperty = BindableProperty.Create("HandleVisual", typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty HandleVisualProperty = BindableProperty.Create(nameof(HandleVisual), typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.HANDLE_VISUAL, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
}
- Console.WriteLine("Slider HandleVisualProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.HANDLE_VISUAL).Get(temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty ProgressVisualProperty = BindableProperty.Create("ProgressVisual", typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty ProgressVisualProperty = BindableProperty.Create(nameof(ProgressVisual), typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.PROGRESS_VISUAL, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
}
- Console.WriteLine("Slider ProgressVisualProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.PROGRESS_VISUAL).Get(temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty PopupVisualProperty = BindableProperty.Create("PopupVisual", typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty PopupVisualProperty = BindableProperty.Create(nameof(PopupVisual), typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.POPUP_VISUAL, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
}
- Console.WriteLine("Slider PopupVisualProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.POPUP_VISUAL).Get(temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty PopupArrowVisualProperty = BindableProperty.Create("PopupArrowVisual", typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty PopupArrowVisualProperty = BindableProperty.Create(nameof(PopupArrowVisual), typeof(PropertyMap), typeof(Slider), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.POPUP_ARROW_VISUAL, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
}
- Console.WriteLine("Slider PopupArrowVisualProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.POPUP_ARROW_VISUAL).Get(temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty DisabledColorProperty = BindableProperty.Create("DisabledColor", typeof(Vector4), typeof(Slider), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty DisabledColorProperty = BindableProperty.Create(nameof(DisabledColor), typeof(Vector4), typeof(Slider), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.DISABLED_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
}
- Console.WriteLine("Slider DisabledColorProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.DISABLED_COLOR).Get(temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty ValuePrecisionProperty = BindableProperty.Create("ValuePrecision", typeof(int), typeof(Slider), default(int), propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty ValuePrecisionProperty = BindableProperty.Create(nameof(ValuePrecision), typeof(int), typeof(Slider), default(int), propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.VALUE_PRECISION, new Tizen.NUI.PropertyValue((int)newValue));
}
- Console.WriteLine("Slider ValuePrecisionProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.VALUE_PRECISION).Get(out temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty ShowPopupProperty = BindableProperty.Create("ShowPopup", typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty ShowPopupProperty = BindableProperty.Create(nameof(ShowPopup), typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.SHOW_POPUP, new Tizen.NUI.PropertyValue((bool)newValue));
}
- Console.WriteLine("Slider ShowPopupProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.SHOW_POPUP).Get(out temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty ShowValueProperty = BindableProperty.Create("ShowValue", typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty ShowValueProperty = BindableProperty.Create(nameof(ShowValue), typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.SHOW_VALUE, new Tizen.NUI.PropertyValue((bool)newValue));
}
- Console.WriteLine("Slider ShowValueProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.SHOW_VALUE).Get(out temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty MarksProperty = BindableProperty.Create("Marks", typeof(PropertyArray), typeof(Slider), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty MarksProperty = BindableProperty.Create(nameof(Marks), typeof(PropertyArray), typeof(Slider), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.MARKS, new Tizen.NUI.PropertyValue((PropertyArray)newValue));
}
- Console.WriteLine("Slider MarksPropertyProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.MARKS).Get(temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty MarkToleranceProperty = BindableProperty.Create("MarkTolerance", typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty MarkToleranceProperty = BindableProperty.Create(nameof(MarkTolerance), typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.MARK_TOLERANCE, new Tizen.NUI.PropertyValue((float)newValue));
}
- Console.WriteLine("Slider MarkToleranceProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
Tizen.NUI.Object.GetProperty(slider.swigCPtr, Slider.Property.MARK_TOLERANCE).Get(out temp);
return temp;
});
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty SnapToMarksProperty = BindableProperty.Create("SnapToMarks", typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty SnapToMarksProperty = BindableProperty.Create(nameof(SnapToMarks), typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) =>
{
var slider = (Slider)bindable;
if (newValue != null)
{
Tizen.NUI.Object.SetProperty(slider.swigCPtr, Slider.Property.SNAP_TO_MARKS, new Tizen.NUI.PropertyValue((bool)newValue));
}
- Console.WriteLine("Slider SnapToMarksPropertyProperty changed: oldValue: " + oldValue + ", newValue: " + newValue);
},
defaultValueCreator:(bindable) =>
{
return temp;
});
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
-
- internal Slider(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Slider_SWIGUpcast(cPtr), cMemoryOwn)
- {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Slider obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- /// <summary>
- /// Dispose.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected override void Dispose(DisposeTypes type)
- {
- if (disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- //Called by User
- //Release your own managed resources here.
- //You should release all of your own disposable objects here.
-
- }
-
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
- if (this != null)
- {
- if (_sliderValueChangedCallbackDelegate != null)
- {
- ValueChangedSignal().Disconnect(_sliderValueChangedCallbackDelegate);
- }
-
- if (_sliderSlidingFinishedCallbackDelegate != null)
- {
- SlidingFinishedSignal().Disconnect(_sliderSlidingFinishedCallbackDelegate);
- }
-
- if (_sliderMarkReachedCallbackDelegate != null)
- {
- MarkReachedSignal().Disconnect(_sliderMarkReachedCallbackDelegate);
- }
- }
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Slider(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
-
- base.Dispose(type);
- }
+ private EventHandlerWithReturnType<object, ValueChangedEventArgs, bool> _sliderValueChangedEventHandler;
+ private ValueChangedCallbackDelegate _sliderValueChangedCallbackDelegate;
+ private EventHandlerWithReturnType<object, SlidingFinishedEventArgs, bool> _sliderSlidingFinishedEventHandler;
+ private SlidingFinishedCallbackDelegate _sliderSlidingFinishedCallbackDelegate;
+ private EventHandlerWithReturnType<object, MarkReachedEventArgs, bool> _sliderMarkReachedEventHandler;
+ private MarkReachedCallbackDelegate _sliderMarkReachedCallbackDelegate;
/// <summary>
- /// The ValueChanged event arguments.
+ /// Creates the slider control.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public class ValueChangedEventArgs : EventArgs
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Slider() : this(Interop.Slider.Slider_New(), true)
{
- private Slider _slider;
- private float _slideValue;
-
- /// <summary>
- /// The slider.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Slider Slider
- {
- get
- {
- return _slider;
- }
- set
- {
- _slider = value;
- }
- }
-
- /// <summary>
- /// The slider value.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float SlideValue
- {
- get
- {
- return _slideValue;
- }
- set
- {
- _slideValue = value;
- }
- }
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// The SlidingFinished event arguments.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class SlidingFinishedEventArgs : EventArgs
+ internal Slider(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Slider.Slider_SWIGUpcast(cPtr), cMemoryOwn)
{
- private Slider _slider;
- private float _slideValue;
-
- /// <summary>
- /// The slider.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Slider Slider
- {
- get
- {
- return _slider;
- }
- set
- {
- _slider = value;
- }
- }
-
- /// <summary>
- /// The slider value.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float SlideValue
- {
- get
- {
- return _slideValue;
- }
- set
- {
- _slideValue = value;
- }
- }
}
- /// <summary>
- /// The MarkReached event arguments.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public class MarkReachedEventArgs : EventArgs
+ internal Slider(Slider handle) : this(Interop.Slider.new_Slider__SWIG_1(Slider.getCPtr(handle)), true)
{
- private Slider _slider;
- private int _slideValue;
-
- /// <summary>
- /// The slider.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Slider Slider
- {
- get
- {
- return _slider;
- }
- set
- {
- _slider = value;
- }
- }
-
- /// <summary>
- /// The slider value.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public int SlideValue
- {
- get
- {
- return _slideValue;
- }
- set
- {
- _slideValue = value;
- }
- }
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
-
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate bool ValueChangedCallbackDelegate(IntPtr slider, float slideValue);
- private EventHandlerWithReturnType<object, ValueChangedEventArgs, bool> _sliderValueChangedEventHandler;
- private ValueChangedCallbackDelegate _sliderValueChangedCallbackDelegate;
-
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate bool SlidingFinishedCallbackDelegate(IntPtr slider, float slideValue);
- private EventHandlerWithReturnType<object, SlidingFinishedEventArgs, bool> _sliderSlidingFinishedEventHandler;
- private SlidingFinishedCallbackDelegate _sliderSlidingFinishedCallbackDelegate;
-
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate bool MarkReachedCallbackDelegate(IntPtr slider, int slideValue);
- private EventHandlerWithReturnType<object, MarkReachedEventArgs, bool> _sliderMarkReachedEventHandler;
- private MarkReachedCallbackDelegate _sliderMarkReachedCallbackDelegate;
/// <summary>
/// An event emitted when the slider value changes.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandlerWithReturnType<object, ValueChangedEventArgs, bool> ValueChanged
{
add
}
}
- // Callback for Slider ValueChanged signal
- private bool OnValueChanged(IntPtr slider, float slideValue)
- {
- ValueChangedEventArgs e = new ValueChangedEventArgs();
-
- // Populate all members of "e" (ValueChangedEventArgs) with real page
- e.Slider = Slider.GetSliderFromPtr(slider);
- e.SlideValue = slideValue;
-
- if (_sliderValueChangedEventHandler != null)
- {
- //here we send all page to user event handlers
- return _sliderValueChangedEventHandler(this, e);
- }
- return false;
- }
-
/// <summary>
/// An event emitted when the sliding is finished.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandlerWithReturnType<object, SlidingFinishedEventArgs, bool> SlidingFinished
{
add
}
}
- // Callback for Slider SlidingFinished signal
- private bool OnSlidingFinished(IntPtr slider, float slideValue)
- {
- SlidingFinishedEventArgs e = new SlidingFinishedEventArgs();
-
- // Populate all members of "e" (SlidingFinishedEventArgs) with real page
- e.Slider = Slider.GetSliderFromPtr(slider);
- e.SlideValue = slideValue;
-
- if (_sliderSlidingFinishedEventHandler != null)
- {
- //here we send all page to user event handlers
- return _sliderSlidingFinishedEventHandler(this, e);
- }
- return false;
- }
-
/// <summary>
/// An event emitted when the slider handle reaches a mark.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandlerWithReturnType<object, MarkReachedEventArgs, bool> MarkReached
{
add
}
}
- // Callback for Slider MarkReached signal
- private bool OnMarkReached(IntPtr slider, int slideValue)
+ /// <summary>
+ /// The lower bound property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float LowerBound
{
- MarkReachedEventArgs e = new MarkReachedEventArgs();
-
- // Populate all members of "e" (MarkReachedEventArgs) with real page
- e.Slider = Slider.GetSliderFromPtr(slider);
- e.SlideValue = slideValue;
-
- if (_sliderMarkReachedEventHandler != null)
+ get
{
- //here we send all page to user event handlers
- return _sliderMarkReachedEventHandler(this, e);
+ return (float)GetValue(LowerBoundProperty);
+ }
+ set
+ {
+ SetValue(LowerBoundProperty, value);
}
- return false;
}
/// <summary>
- /// Gets the slider from the pointer.
+ /// The upper bound property.
/// </summary>
- /// <param name="cPtr">The pointer of the slider.</param>
- /// <returns>The object of the slider type.</returns>
- internal static Slider GetSliderFromPtr(global::System.IntPtr cPtr)
- {
- Slider ret = new Slider(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal new class Property : global::System.IDisposable
- {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
- {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- //A Flag to check who called Dispose(). (By User or DisposeQueue)
- private bool isDisposeQueued = false;
- //A Flat to check if it is already disposed.
- protected bool disposed = false;
-
- ~Property()
- {
- if (!isDisposeQueued)
- {
- isDisposeQueued = true;
- DisposeQueue.Instance.Add(this);
- }
- }
-
- /// <since_tizen> 3 </since_tizen>
- public void Dispose()
- {
- //Throw excpetion if Dispose() is called in separate thread.
- if (!Window.IsInstalled())
- {
- throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
- }
-
- if (isDisposeQueued)
- {
- Dispose(DisposeTypes.Implicit);
- }
- else
- {
- Dispose(DisposeTypes.Explicit);
- System.GC.SuppressFinalize(this);
- }
- }
-
- protected virtual void Dispose(DisposeTypes type)
- {
- if (disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- //Called by User
- //Release your own managed resources here.
- //You should release all of your own disposable objects here.
-
- }
-
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Slider_Property(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
-
- disposed = true;
- }
-
- internal Property() : this(NDalicPINVOKE.new_Slider_Property(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal static readonly int LOWER_BOUND = NDalicPINVOKE.Slider_Property_LOWER_BOUND_get();
- internal static readonly int UPPER_BOUND = NDalicPINVOKE.Slider_Property_UPPER_BOUND_get();
- internal static readonly int VALUE = NDalicPINVOKE.Slider_Property_VALUE_get();
- internal static readonly int TRACK_VISUAL = NDalicPINVOKE.Slider_Property_TRACK_VISUAL_get();
- internal static readonly int HANDLE_VISUAL = NDalicPINVOKE.Slider_Property_HANDLE_VISUAL_get();
- internal static readonly int PROGRESS_VISUAL = NDalicPINVOKE.Slider_Property_PROGRESS_VISUAL_get();
- internal static readonly int POPUP_VISUAL = NDalicPINVOKE.Slider_Property_POPUP_VISUAL_get();
- internal static readonly int POPUP_ARROW_VISUAL = NDalicPINVOKE.Slider_Property_POPUP_ARROW_VISUAL_get();
- internal static readonly int DISABLED_COLOR = NDalicPINVOKE.Slider_Property_DISABLED_COLOR_get();
- internal static readonly int VALUE_PRECISION = NDalicPINVOKE.Slider_Property_VALUE_PRECISION_get();
- internal static readonly int SHOW_POPUP = NDalicPINVOKE.Slider_Property_SHOW_POPUP_get();
- internal static readonly int SHOW_VALUE = NDalicPINVOKE.Slider_Property_SHOW_VALUE_get();
- internal static readonly int MARKS = NDalicPINVOKE.Slider_Property_MARKS_get();
- internal static readonly int SNAP_TO_MARKS = NDalicPINVOKE.Slider_Property_SNAP_TO_MARKS_get();
- internal static readonly int MARK_TOLERANCE = NDalicPINVOKE.Slider_Property_MARK_TOLERANCE_get();
-
- }
-
- /// <summary>
- /// Creates the slider control.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public Slider() : this(NDalicPINVOKE.Slider_New(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- this.ValueChanged += (obj, e) => {
- this.Value = e.SlideValue;
- return true;
- };
- }
-
- internal Slider(Slider handle) : this(NDalicPINVOKE.new_Slider__SWIG_1(Slider.getCPtr(handle)), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal Slider Assign(Slider handle)
- {
- Slider ret = new Slider(NDalicPINVOKE.Slider_Assign(swigCPtr, Slider.getCPtr(handle)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Downcasts an object handle to the slider.<br />
- /// If the handle points to a slider, then the downcast produces a valid handle.<br />
- /// If not, then the returned handle is left uninitialized.<br />
- /// </summary>
- /// <param name="handle">The handle to an object.</param>
- /// <returns>The handle to a slider or an uninitialized handle.</returns>
- /// <since_tizen> 3 </since_tizen>
- public static Slider DownCast(BaseHandle handle)
- {
- Slider ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Slider;
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal SliderValueChangedSignal ValueChangedSignal()
- {
- SliderValueChangedSignal ret = new SliderValueChangedSignal(NDalicPINVOKE.Slider_ValueChangedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal SliderValueChangedSignal SlidingFinishedSignal()
- {
- SliderValueChangedSignal ret = new SliderValueChangedSignal(NDalicPINVOKE.Slider_SlidingFinishedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal SliderMarkReachedSignal MarkReachedSignal()
- {
- SliderMarkReachedSignal ret = new SliderMarkReachedSignal(NDalicPINVOKE.Slider_MarkReachedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// The lower bound property.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float LowerBound
- {
- get
- {
- return (float)GetValue(LowerBoundProperty);
- }
- set
- {
- SetValue(LowerBoundProperty, value);
- }
- }
-
- /// <summary>
- /// The upper bound property.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public float UpperBound
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float UpperBound
{
get
{
/// The value property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public float Value
{
get
/// The track visual property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public PropertyMap TrackVisual
{
get
/// The handle visual property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public PropertyMap HandleVisual
{
get
/// The progress visual property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public PropertyMap ProgressVisual
{
get
/// The popup visual property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public PropertyMap PopupVisual
{
get
/// The popup arrow visual property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public PropertyMap PopupArrowVisual
{
get
/// The disable color property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public Vector4 DisabledColor
{
get
/// The value precision property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public int ValuePrecision
{
get
/// The show popup property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public bool ShowPopup
{
get
/// The show value property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public bool ShowValue
{
get
/// The marks property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public Tizen.NUI.PropertyArray Marks
{
get
/// The snap to marks property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public bool SnapToMarks
{
get
/// The mark tolerance property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public float MarkTolerance
{
get
}
}
- }
+ /// Only used by the IL of xaml, will never changed to not hidden.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool IsCreateByXaml
+ {
+ get
+ {
+ return base.IsCreateByXaml;
+ }
+ set
+ {
+ base.IsCreateByXaml = value;
+
+ if (value == true)
+ {
+ this.ValueChanged += (obj, e) => {
+ this.Value = e.SlideValue;
+ return true;
+ };
+ }
+ }
+ }
+
+ /// <summary>
+ /// Downcasts an object handle to the slider.<br />
+ /// If the handle points to a slider, then the downcast produces a valid handle.<br />
+ /// If not, then the returned handle is left uninitialized.<br />
+ /// </summary>
+ /// <param name="handle">The handle to an object.</param>
+ /// <returns>The handle to a slider or an uninitialized handle.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static Slider DownCast(BaseHandle handle)
+ {
+ Slider ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Slider;
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Slider obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ /// <summary>
+ /// Gets the slider from the pointer.
+ /// </summary>
+ /// <param name="cPtr">The pointer of the slider.</param>
+ /// <returns>The object of the slider type.</returns>
+ internal static Slider GetSliderFromPtr(global::System.IntPtr cPtr)
+ {
+ Slider ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Slider;
+ if (null == ret)
+ {
+ ret = Registry.GetManagedBaseHandleFromRefObject(cPtr) as Slider;
+ }
+
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal Slider Assign(Slider handle)
+ {
+ Slider ret = new Slider(Interop.Slider.Slider_Assign(swigCPtr, Slider.getCPtr(handle)), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal SliderValueChangedSignal ValueChangedSignal()
+ {
+ SliderValueChangedSignal ret = new SliderValueChangedSignal(Interop.Slider.Slider_ValueChangedSignal(swigCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal SliderValueChangedSignal SlidingFinishedSignal()
+ {
+ SliderValueChangedSignal ret = new SliderValueChangedSignal(Interop.Slider.Slider_SlidingFinishedSignal(swigCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal SliderMarkReachedSignal MarkReachedSignal()
+ {
+ SliderMarkReachedSignal ret = new SliderMarkReachedSignal(Interop.Slider.Slider_MarkReachedSignal(swigCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Dispose.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void Dispose(DisposeTypes type)
+ {
+ if (disposed)
+ {
+ return;
+ }
+
+ //Release your own unmanaged resources here.
+ //You should not access any managed member here except static instance.
+ //because the execution order of Finalizes is non-deterministic.
+ if (this != null)
+ {
+ if (_sliderValueChangedCallbackDelegate != null)
+ {
+ ValueChangedSignal().Disconnect(_sliderValueChangedCallbackDelegate);
+ }
+
+ if (_sliderSlidingFinishedCallbackDelegate != null)
+ {
+ SlidingFinishedSignal().Disconnect(_sliderSlidingFinishedCallbackDelegate);
+ }
+
+ if (_sliderMarkReachedCallbackDelegate != null)
+ {
+ MarkReachedSignal().Disconnect(_sliderMarkReachedCallbackDelegate);
+ }
+ }
+
+ base.Dispose(type);
+ }
+ /// This will not be public opened.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
+ {
+ Interop.Slider.delete_Slider(swigCPtr);
+ }
+
+ // Callback for Slider ValueChanged signal
+ private bool OnValueChanged(IntPtr slider, float slideValue)
+ {
+ ValueChangedEventArgs e = new ValueChangedEventArgs();
+
+ // Populate all members of "e" (ValueChangedEventArgs) with real page
+ e.Slider = Slider.GetSliderFromPtr(slider);
+ e.SlideValue = slideValue;
+
+ if (_sliderValueChangedEventHandler != null)
+ {
+ //here we send all page to user event handlers
+ return _sliderValueChangedEventHandler(this, e);
+ }
+ return false;
+ }
+
+ // Callback for Slider SlidingFinished signal
+ private bool OnSlidingFinished(IntPtr slider, float slideValue)
+ {
+ SlidingFinishedEventArgs e = new SlidingFinishedEventArgs();
+
+ // Populate all members of "e" (SlidingFinishedEventArgs) with real page
+ e.Slider = Slider.GetSliderFromPtr(slider);
+ e.SlideValue = slideValue;
+
+ if (_sliderSlidingFinishedEventHandler != null)
+ {
+ //here we send all page to user event handlers
+ return _sliderSlidingFinishedEventHandler(this, e);
+ }
+ return false;
+ }
+
+ // Callback for Slider MarkReached signal
+ private bool OnMarkReached(IntPtr slider, int slideValue)
+ {
+ MarkReachedEventArgs e = new MarkReachedEventArgs();
+
+ // Populate all members of "e" (MarkReachedEventArgs) with real page
+ e.Slider = Slider.GetSliderFromPtr(slider);
+ e.SlideValue = slideValue;
+
+ if (_sliderMarkReachedEventHandler != null)
+ {
+ //here we send all page to user event handlers
+ return _sliderMarkReachedEventHandler(this, e);
+ }
+ return false;
+ }
+
+ /// <summary>
+ /// The ValueChanged event arguments.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class ValueChangedEventArgs : EventArgs
+ {
+ private Slider _slider;
+ private float _slideValue;
+
+ /// <summary>
+ /// The slider.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Slider Slider
+ {
+ get
+ {
+ return _slider;
+ }
+ set
+ {
+ _slider = value;
+ }
+ }
+
+ /// <summary>
+ /// The slider value.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float SlideValue
+ {
+ get
+ {
+ return _slideValue;
+ }
+ set
+ {
+ _slideValue = value;
+ }
+ }
+ }
+
+ /// <summary>
+ /// The SlidingFinished event arguments.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class SlidingFinishedEventArgs : EventArgs
+ {
+ private Slider _slider;
+ private float _slideValue;
+
+ /// <summary>
+ /// The slider.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Slider Slider
+ {
+ get
+ {
+ return _slider;
+ }
+ set
+ {
+ _slider = value;
+ }
+ }
+
+ /// <summary>
+ /// The slider value.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float SlideValue
+ {
+ get
+ {
+ return _slideValue;
+ }
+ set
+ {
+ _slideValue = value;
+ }
+ }
+ }
+
+ /// <summary>
+ /// The MarkReached event arguments.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class MarkReachedEventArgs : EventArgs
+ {
+ private Slider _slider;
+ private int _slideValue;
+
+ /// <summary>
+ /// The slider.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Slider Slider
+ {
+ get
+ {
+ return _slider;
+ }
+ set
+ {
+ _slider = value;
+ }
+ }
+
+ /// <summary>
+ /// The slider value.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public int SlideValue
+ {
+ get
+ {
+ return _slideValue;
+ }
+ set
+ {
+ _slideValue = value;
+ }
+ }
+ }
+
+ internal new class Property
+ {
+ internal static readonly int LOWER_BOUND = Interop.Slider.Slider_Property_LOWER_BOUND_get();
+ internal static readonly int UPPER_BOUND = Interop.Slider.Slider_Property_UPPER_BOUND_get();
+ internal static readonly int VALUE = Interop.Slider.Slider_Property_VALUE_get();
+ internal static readonly int TRACK_VISUAL = Interop.Slider.Slider_Property_TRACK_VISUAL_get();
+ internal static readonly int HANDLE_VISUAL = Interop.Slider.Slider_Property_HANDLE_VISUAL_get();
+ internal static readonly int PROGRESS_VISUAL = Interop.Slider.Slider_Property_PROGRESS_VISUAL_get();
+ internal static readonly int POPUP_VISUAL = Interop.Slider.Slider_Property_POPUP_VISUAL_get();
+ internal static readonly int POPUP_ARROW_VISUAL = Interop.Slider.Slider_Property_POPUP_ARROW_VISUAL_get();
+ internal static readonly int DISABLED_COLOR = Interop.Slider.Slider_Property_DISABLED_COLOR_get();
+ internal static readonly int VALUE_PRECISION = Interop.Slider.Slider_Property_VALUE_PRECISION_get();
+ internal static readonly int SHOW_POPUP = Interop.Slider.Slider_Property_SHOW_POPUP_get();
+ internal static readonly int SHOW_VALUE = Interop.Slider.Slider_Property_SHOW_VALUE_get();
+ internal static readonly int MARKS = Interop.Slider.Slider_Property_MARKS_get();
+ internal static readonly int SNAP_TO_MARKS = Interop.Slider.Slider_Property_SNAP_TO_MARKS_get();
+ internal static readonly int MARK_TOLERANCE = Interop.Slider.Slider_Property_MARK_TOLERANCE_get();
+ }
+ }
}