Class DataSource
Source of data
Inheritance
System.Object
DataSource
Implements
Namespace: Syncfusion.Windows.Primitives
Assembly: Syncfusion.SfInput.Wpf.dll
Syntax
public abstract class DataSource : Object, ILoopingSelectorDataSource
Constructors
DataSource()
Declaration
protected DataSource()
Fields
SelectionChangedEvent
Event invoked on changing the selection
Declaration
public static readonly RoutedEvent SelectionChangedEvent
Field Value
Type |
---|
System.Windows.RoutedEvent |
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<System.Windows.Controls.SelectionChangedEventArgs> |