CalendarDatePicker - Cannot Dynamically Change PlaceholderText property once initially set. #10022
Labels
area-DateTimePickers
DatePicker, TimePicker, CalendarDatePicker, CalendarView
team-Controls
Issue for the Controls team
Describe the bug
After initially setting the PlaceholderText property, setting the property to another value
Steps to reproduce the bug
Issue - the PlaceholderText is still the initial value instead of the new value.
Expected behavior
You should be able to dynamically change the PlaceholderText value.
Screenshots
Initial Property Value
The initial PlaceholderText property value is "PlaceholderText".
As you click the "Change Text" button, a counter is appended to the property.
A TextBlock shows the new property, but the PlaceholderText property remains the same
After several button clicks:
NuGet package version
Windows App SDK 1.6.0: 1.6.240829007
Packaging type
Packaged (MSIX)
Windows version
Windows 10 version 22H2 (19045, 2022 Update)
IDE
Visual Studio 2022
Additional context
MainWindow.xaml code
MainWindow.xaml.cs code
public sealed partial class MainWindow : Window
{
public int ICount;
public MainWindow()
{
this.InitializeComponent();
Attaching sample project
CalendarDatePickerPlaceHolder.zip
The text was updated successfully, but these errors were encountered: