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 UcWaterMarkTextBox1 : TextBox { public UcWaterMarkTextBox1() { } public static readonly DependencyProperty WaterMarkProperty = DependencyProperty.Register( "WaterMark", typeof(string), typeof(UcWaterMarkTextBox1), null); public string WaterMark { get { return (string)GetValue(WaterMarkProperty); } set { SetValue(WaterMarkProperty, value); } } } }