Version

Convert Method (DayOfWeekToStringConverter)

Converts a given DayOfWeekHeaderFormat and System.DayOfWeek to a string representing the DayOfWeekHeaderFormat
Syntax
'Declaration
 
Public Function Convert( _
   ByVal values() As Object, _
   ByVal targetType As Type, _
   ByVal parameter As Object, _
   ByVal culture As CultureInfo _
) As Object
public object Convert( 
   object[] values,
   Type targetType,
   object parameter,
   CultureInfo culture
)

Parameters

values
A two item array containing a System.DayOfWeek and DayOfWeekHeaderFormat in that order. If a 1 element array is specified, it must contain the System.DayOfWeek to convert; the DayOfWeekHeaderFormat is assumed to be Abbreviated and the converter culture is used for the culture info.
targetType
The type to which the converter must be convert the value. This parameter is not used. A String value is always returned
parameter
This parameter is not used.
culture
The culture used to obtain the day of week names.

Return Value

System.Windows.DependencyProperty.UnsetValue if the parameters do not match the information. Otherwise a string representation of the day of week is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also