Skip to content

Commit

Permalink
fix: use CustomDateFormatString also for watermark
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Nov 12, 2024
1 parent a706b60 commit 464e85e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,11 @@ private void SetWaterMarkText()

switch (SelectedDateFormat)
{
case CalendarDatePickerFormat.Custom:
{
watermarkText = string.Format(CultureInfo.CurrentCulture, watermarkFormat, CustomDateFormatString);
break;
}
case CalendarDatePickerFormat.Long:
{
watermarkText = string.Format(CultureInfo.CurrentCulture, watermarkFormat, dtfi.LongDatePattern.ToString());
Expand All @@ -913,6 +918,7 @@ private void SetWaterMarkText()
break;
}
}

_textBox.Watermark = watermarkText;
}
else
Expand Down

0 comments on commit 464e85e

Please sign in to comment.