Files
29WxOrder/29WxOrderWpf/UserControls/UcWaterMarkTextBox.cs
T
2026-06-21 10:01:03 +08:00

27 lines
713 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace _29WxOrderWpf.UserControls
{
public class UcWaterMarkTextBox : TextBox
{
public UcWaterMarkTextBox()
{
this.DataContext = this;
}
public static readonly DependencyProperty WaterMarkProperty = DependencyProperty.Register(
"WaterMark", typeof(string), typeof(UcWaterMarkTextBox), null);
public string WaterMark
{
get { return (string)GetValue(WaterMarkProperty); }
set { SetValue(WaterMarkProperty, value); }
}
}
}