C# Class Microsoft.Samples.KMoore.WPFSamples.DateControls.WeekNumberConverter

WeekNumberConverter uses current FirstDayOfWeek and DateTime to calculate the week numbers
Inheritance: IMultiValueConverter
Afficher le fichier Open project: daszat/zetbox

Méthodes publiques

Méthode Description
Convert ( object values, Type targetType, object parameter, CultureInfo culture ) : object

calculate week number with FirstDayOfWeek and DateTime

ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object[]

Not Supported

Method Details

Convert() public méthode

calculate week number with FirstDayOfWeek and DateTime
public Convert ( object values, Type targetType, object parameter, CultureInfo culture ) : object
values object /// values[0] : FirstDayOfWeek /// values[1] : DateTime (this value is used to calculate the MonthCalendar ///
targetType System.Type int
parameter object 0~5, row index of each month
culture System.Globalization.CultureInfo CultureInfo
Résultat object

ConvertBack() public méthode

Not Supported
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object[]
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
Résultat object[]