TextBoxMasked.cs 764 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Controls;
  7. using System.Windows.Media;
  8. using System.Windows;
  9. namespace Venus_Themes.CustomControls
  10. {
  11. public class TextBoxWithMark : TextBox
  12. {
  13. public static readonly DependencyProperty WaterMarksProperty = DependencyProperty.Register(
  14. "WaterMarks", typeof(string), typeof(TextBoxWithMark), new PropertyMetadata(default(string)));
  15. public string WaterMarks
  16. {
  17. get
  18. {
  19. return (string)GetValue(WaterMarksProperty);
  20. }
  21. set
  22. {
  23. SetValue(WaterMarksProperty, value);
  24. }
  25. }
  26. }
  27. }