Calendar.DisplayDateEnd 속성

정의

달력에서 사용할 수 있는 날짜 범위의 마지막 날짜를 가져오거나 설정합니다.

public:
 property Nullable<DateTime> DisplayDateEnd { Nullable<DateTime> get(); void set(Nullable<DateTime> value); };
public DateTime? DisplayDateEnd { get; set; }
member this.DisplayDateEnd : Nullable<DateTime> with get, set
Public Property DisplayDateEnd As Nullable(Of DateTime)

속성 값

Nullable<DateTime>

달력에서 사용할 수 있는 마지막 날짜입니다.

예제

다음 코드에서는 설정 된 Calendar 표시할 수 있는 날짜 및 현재 선택 되 고 표시 된 날짜 집합의 특정 범위를 사용 하 여 합니다.

// Create a Calendar that displays 1/10/2009
// through 4/18/2009.
Calendar basicCalendar = new Calendar();
basicCalendar.DisplayDateStart = new DateTime(2009, 1, 10);
basicCalendar.DisplayDateEnd = new DateTime(2009, 4, 18);
basicCalendar.DisplayDate = new DateTime(2009, 3, 15);
basicCalendar.SelectedDate = new DateTime(2009, 2, 15);

// root is a Panel that is defined elswhere.
root.Children.Add(basicCalendar);
' Create a Calendar that displays 1/10/2009 
' through 4/18/2009. 
Dim basicCalendar As New Calendar()
basicCalendar.DisplayDateStart = New DateTime(2009, 1, 10)
basicCalendar.DisplayDateEnd = New DateTime(2009, 4, 18)
basicCalendar.DisplayDate = New DateTime(2009, 3, 15)
basicCalendar.SelectedDate = New DateTime(2009, 2, 15)

' root is a Panel that is defined elswhere. 
root.Children.Add(basicCalendar)
<!-- Create a Calendar that displays 1/10/2009
           through 4/18/2009. -->
<Calendar Margin="20" 
          SelectedDate="2/15/2009"
          DisplayDate="3/15/2009"
          DisplayDateStart="1/10/2009"
          DisplayDateEnd="4/18/2009"/>

설명

범위를 제한할 수는 Calendar 설정 하 여는 DisplayDateStartDisplayDateEnd 속성입니다. 사용자를 스크롤하여 하거나 해당이 범위를 벗어나는 날짜를 선택할 수 없습니다. 설정 하는 경우는 SelectedDate 속성을 뒤에 오는 날짜 DisplayDateEndDisplayDateEnd 동일한 값으로 설정 되어 SelectedDate입니다.

종속성 속성 정보

식별자 필드 DisplayDateEndProperty
메타 데이터 속성 설정 true BindsTwoWayByDefault

XAML 특성 사용

<Calendar DisplayDateEnd="dateTimeString"/>  

XAML 값

dateTimeString
에 나열 된 형식 중 하나에 있는 날짜를 DateTime XAML 구문 항목입니다.

적용 대상

추가 정보