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 13, 2024
1 parent 231b410 commit ef813e2
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 ef813e2

Please sign in to comment.