MindFusion.Scheduling for Silverlight Programmer's Guide
MonthRangeSettings.TitleSeparator Property
See Also
 





Gets or sets the string used as a title separator in a MonthRange view that displays more than 1 month at a time.

Namespace: MindFusion.Scheduling.Silverlight
Assembly: MindFusion.Scheduling.Silverlight

 Syntax

C#  Copy Code

public string TitleSeparator { get; set; }

Visual Basic  Copy Code

Public Property TitleSeparator As String

 Property Value

A string containing the separator text.

Unsetting the Property Value

Unset the local value of this property to use the corresponding value from the current theme. To unset the property value, call ClearValue on the settings containing the property and pass a reference to the DependencyProperty representing the property.

 Remarks

The format of the text displayed in the view's header is in the format "<FirstDate><TitleSeparator><LastDate>", where <FirstDate> and <LastDate> indicate the first and the last visible dates in the calendar, formatted according to the TitleFormat property. The <TitleSeparator> represents the value of this property. If TitleSeparator is set to an empty string, then the header's text is only "<FirstDate>". See the example below for more information.

 Example

The following example shows how to display only the current year in the header of a MonthRange view. The sample assumes that calendar references an existing Calendar object.

C#  Copy Code
calendar.MonthRangeSettings.TitleFormat = "yyyy";
calendar.MonthRangeSettings.TitleSeparator = "";
Visual Basic  Copy Code
calendar.MonthRangeSettings.TitleFormat = "yyyy"
calendar.MonthRangeSettings.TitleSeparator = ""

 See Also

MonthRangeSettings Members
MonthRangeSettings Class
MindFusion.Scheduling.Silverlight Namespace
TitleFormat Property