C# Class Microsoft.Phone.Controls.Primitives.DateTimePickerPageBase

Represents a base class for pages that work with DateTimePickerBase to allow users to choose a date/time.
Inheritance: PhoneApplicationPage, IDateTimePickerPage
Mostrar archivo Open project: Kinnara/WPToolkit

Public Methods

Method Description
SetFlowDirection ( FlowDirection flowDirection ) : void

Sets the selectors and title flow direction.

Protected Methods

Method Description
GetSelectorsOrderedByCulturePattern ( ) : IEnumerable

Gets a sequence of LoopingSelector parts ordered according to culture string for date/time formatting.

GetSelectorsOrderedByCulturePattern ( string pattern, char patternCharacters, LoopingSelector selectors ) : IEnumerable

Gets a sequence of LoopingSelector parts ordered according to culture string for date/time formatting.

InitializeDateTimePickerPage ( LoopingSelector primarySelector, LoopingSelector secondarySelector, LoopingSelector tertiarySelector ) : void

Initializes the DateTimePickerPageBase class; must be called from the subclass's constructor.

OnBackKeyPress ( CancelEventArgs e ) : void

Called when the Back key is pressed.

OnNavigatedFrom ( System.Windows.Navigation.NavigationEventArgs e ) : void

Called when a page is no longer the active page in a frame.

OnNavigatedTo ( System.Windows.Navigation.NavigationEventArgs e ) : void

Called when a page becomes the active page in a frame.

Private Methods

Method Description
ClosePickerPage ( ) : void
OnCancelButtonClick ( object sender, EventArgs e ) : void
OnClosedStoryboardCompleted ( object sender, EventArgs e ) : void
OnDataSourceSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
OnDoneButtonClick ( object sender, EventArgs e ) : void
OnSelectorIsExpandedChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

GetSelectorsOrderedByCulturePattern() protected abstract method

Gets a sequence of LoopingSelector parts ordered according to culture string for date/time formatting.
protected abstract GetSelectorsOrderedByCulturePattern ( ) : IEnumerable
return IEnumerable

GetSelectorsOrderedByCulturePattern() protected static method

Gets a sequence of LoopingSelector parts ordered according to culture string for date/time formatting.
protected static GetSelectorsOrderedByCulturePattern ( string pattern, char patternCharacters, LoopingSelector selectors ) : IEnumerable
pattern string Culture-specific date/time format string.
patternCharacters char Date/time format string characters for the primary/secondary/tertiary LoopingSelectors.
selectors LoopingSelector Instances for the primary/secondary/tertiary LoopingSelectors.
return IEnumerable

InitializeDateTimePickerPage() protected method

Initializes the DateTimePickerPageBase class; must be called from the subclass's constructor.
protected InitializeDateTimePickerPage ( LoopingSelector primarySelector, LoopingSelector secondarySelector, LoopingSelector tertiarySelector ) : void
primarySelector LoopingSelector Primary selector.
secondarySelector LoopingSelector Secondary selector.
tertiarySelector LoopingSelector Tertiary selector.
return void

OnBackKeyPress() protected method

Called when the Back key is pressed.
protected OnBackKeyPress ( CancelEventArgs e ) : void
e CancelEventArgs Event arguments.
return void

OnNavigatedFrom() protected method

Called when a page is no longer the active page in a frame.
protected OnNavigatedFrom ( System.Windows.Navigation.NavigationEventArgs e ) : void
e System.Windows.Navigation.NavigationEventArgs An object that contains the event data.
return void

OnNavigatedTo() protected method

Called when a page becomes the active page in a frame.
protected OnNavigatedTo ( System.Windows.Navigation.NavigationEventArgs e ) : void
e System.Windows.Navigation.NavigationEventArgs An object that contains the event data.
return void

SetFlowDirection() public abstract method

Sets the selectors and title flow direction.
public abstract SetFlowDirection ( FlowDirection flowDirection ) : void
flowDirection FlowDirection Flow direction to set.
return void