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

WeekNumberConverter uses current FirstDayOfWeek and DateTime to calculate the week numbers
Inheritance: IMultiValueConverter
Mostrar archivo Open project: daszat/zetbox

Public Methods

Method 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 method

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
return object

ConvertBack() public method

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