dotnet / dotnet/wpf

WPF: Calendar.DisplayDate Dependency Property

Open
#451 4 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Please see the attached example, there is a Calendar and a Button.

        <Calendar SelectedDate="{Binding DateTimeTest, Mode=TwoWay}"

DisplayDate="{Binding DateTimeTest, Mode=OneWay}" />
<Button Command="{Binding TodayCommand}"
Content="Today" />

The Button set the property DateTimeTest to DateTime.Today.

The workflow of the issue:

  1. Select the date 19. 3. 2010 via Calendar via selecting year from the top part (important).
  2. Press Today Button.
  3. The selected date of Calendar is not updated.

.NET Framework 4.7.1

_This issue has been moved from https://developercommunity.visualstudio.com/content/problem/498724/wpf-calendardisplaydate-dependency-property.html
VSTS ticketId: 823387_
_These are the original issue comments:_
(no comments)
_These are the original issue solutions:_
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.