Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
Deprecate the legacy APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiejava committed May 13, 2020
1 parent 5a180b5 commit 46d81be
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ protected override void OnElementChanged(ElementChangedEventArgs<CircleDateTimeS
SetNativeControl(new ECircleDateTimeSelector(XForms.NativeParent, surface));
Control.DateTimeChanged += OnDateTimeChanged;
}
else
{
throw new CirclePageNotFoundException();
}
}
base.OnElementChanged(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ protected override void OnElementChanged(ElementChangedEventArgs<CircleStepper>
_listShow.On += OnListShow;
_listHide.On += OnListHide;
}
else
{
throw new CirclePageNotFoundException();
}
}

base.OnElementChanged(e);
Expand Down
1 change: 1 addition & 0 deletions src/Tizen.Wearable.CircularUI.Forms/Check.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ namespace Tizen.Wearable.CircularUI.Forms
/// }
/// </code>
/// </example>
[Obsolete("Check is obsolete as of version 1.5.0. Please use Xamarin.Forms.Switch instead.")]
public class Check : Switch
{
/// <summary>
Expand Down
Empty file modified src/Tizen.Wearable.CircularUI.Forms/CircleListView.cs
100755 → 100644
Empty file.
2 changes: 2 additions & 0 deletions src/Tizen.Wearable.CircularUI.Forms/CirclePage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
Expand All @@ -27,6 +28,7 @@ namespace Tizen.Wearable.CircularUI.Forms
/// It has an ActionButton, and can use the MenuItem type as text, icon, command, and so on.
/// </summary>
/// <since_tizen> 4 </since_tizen>
[Obsolete("CirclePage is obsolete as of version 1.5.0. Please use Xamarin.Forms.ContentPage, CircleSurfaceView, and BezelInteracationPage instead.")]
public class CirclePage : ContentPage, ICircleSurfaceProvider
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/Tizen.Wearable.CircularUI.Forms/CirclePageNotFoundException.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace Tizen.Wearable.CircularUI.Forms
/// The CirclePageNotFoundException is an Exception class that occurs when a CircleSurface has no child.
/// </summary>
/// <since_tizen> 4 </since_tizen>
/// [Obsolete("CirclePageNotFoundException is obsolete as of version 1.5.0. Please do not use.")]
public class CirclePageNotFoundException : Exception
{
/// <summary>
Expand Down
Empty file modified src/Tizen.Wearable.CircularUI.Forms/CircleScrollView.cs
100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions src/Tizen.Wearable.CircularUI.Forms/CircleSurfaceEffectBehavior.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ namespace Tizen.Wearable.CircularUI.Forms
/// The CircleSurfaceEffectBehavior is a behavior which allows you to add views that require CircleSurface.
/// </summary>
/// <since_tizen> 4 </since_tizen>
/// [Obsolete("CircleSurfaceEffectBehavior is obsolete as of version 1.5.0. Please use BezelInteracationPage instead.")]
public class CircleSurfaceEffectBehavior : Behavior<Page>
{
internal static readonly BindableProperty SurfaceProperty = BindableProperty.CreateAttached("CircleSurface", typeof(object), typeof(CircleSurfaceEffectBehavior), null);
Expand Down
2 changes: 2 additions & 0 deletions src/Tizen.Wearable.CircularUI.Forms/IndexPage.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

using System;
using Xamarin.Forms;

namespace Tizen.Wearable.CircularUI.Forms
Expand All @@ -23,6 +24,7 @@ namespace Tizen.Wearable.CircularUI.Forms
/// When Page is added/removed at Multipage. circular index is added/removed automatically at the top of window.
/// </summary>
/// <since_tizen> 4 </since_tizen>
[Obsolete("IndexPage is obsolete as of version 1.5.0. Please use Xamarin.Forms.CarouselView and Xamarin.Forms.IndicatorView instead.")]
public class IndexPage : MultiPage<ContentPage>
{
protected override ContentPage CreateDefault(object item)
Expand Down
1 change: 1 addition & 0 deletions src/Tizen.Wearable.CircularUI.Forms/Radio.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ namespace Tizen.Wearable.CircularUI.Forms
/// };
/// </code>
/// </example>
[Obsolete("Radio is obsolete as of version 1.5.0. Please use Xamarin.Forms.RadioButton instead.")]
public class Radio : View
{
/// <summary>
Expand Down

0 comments on commit 46d81be

Please sign in to comment.