menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataSource - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataSource

    Source of data

    Inheritance
    System.Object
    DataSource
    AmPmDataSource
    DayDataSource
    MinuteDataSource
    MonthDataSource
    SecondDataSource
    TwelveHourDataSource
    TwentyFourHourDataSource
    YearDataSource
    Implements
    ILoopingSelectorDataSource
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.Primitives
    Assembly: Syncfusion.SfShared.UWP.dll
    Syntax
    [ClassReference(IsReviewed = false, ShouldInclude = false)]
    public abstract class DataSource : Object, ILoopingSelectorDataSource, IDisposable

    Constructors

    DataSource()

    Declaration
    protected DataSource()

    Fields

    valueWrapper

    Declaration
    public DateTimeWrapper valueWrapper
    Field Value
    Type
    DateTimeWrapper

    Properties

    SelectedItem

    Gets or sets the item that has been selected

    Declaration
    public object SelectedItem { get; set; }
    Property Value
    Type
    System.Object

    Methods

    Dispose()

    Disposes the control while unloading

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    GetDatePartCollection(DateTime, Int32, Int32)

    Gets the collection of dates.

    Declaration
    public List<DateTimeWrapper> GetDatePartCollection(DateTime relativeDate, int minuteinterval, int secondinterval)
    Parameters
    Type Name Description
    System.DateTime relativeDate

    relative date

    System.Int32 minuteinterval

    minute interval

    System.Int32 secondinterval

    second interval

    Returns
    Type Description
    System.Collections.Generic.List<DateTimeWrapper>

    returns collection of dates.

    GetNext(Object)

    Gets the next value.

    Declaration
    public object GetNext(object relativeTo)
    Parameters
    Type Name Description
    System.Object relativeTo

    relative value

    Returns
    Type Description
    System.Object

    next value as object for relative value

    GetPrevious(Object)

    Gets the previous value.

    Declaration
    public object GetPrevious(object relativeTo)
    Parameters
    Type Name Description
    System.Object relativeTo

    relative value

    Returns
    Type Description
    System.Object

    previous value to relative value

    GetRelativeTo(DateTime, Int32)

    Gets the relative DateTime value

    Declaration
    protected abstract Nullable<DateTime> GetRelativeTo(DateTime relativeDate, int delta)
    Parameters
    Type Name Description
    System.DateTime relativeDate

    relative date

    System.Int32 delta

    delta value

    Returns
    Type Description
    System.Nullable<System.DateTime>

    returns the relative date

    UpdateMinimumDateTime(DateTime, Int32, Int32, out DateTime)

    Gets the updated minimum date time.

    Declaration
    public int UpdateMinimumDateTime(DateTime relativeDate, int minuteinterval, int secondinterval, out DateTime datetime)
    Parameters
    Type Name Description
    System.DateTime relativeDate

    relative date

    System.Int32 minuteinterval

    minute interval

    System.Int32 secondinterval

    second interval

    System.DateTime datetime

    date time value

    Returns
    Type Description
    System.Int32

    returns updated minimum date time.

    Events

    SelectionChanged

    Event invoked on changing the selection

    Declaration
    public event EventHandler<SelectionChangedEventArgs> SelectionChanged
    Event Type
    Type
    System.EventHandler<Windows.UI.Xaml.Controls.SelectionChangedEventArgs>

    Implements

    ILoopingSelectorDataSource
    System.IDisposable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved