2016-12-15から1日間の記事一覧
ウォーターマークのあるテキストボックス(未入力だと透かしがでるやつ)がたまにほしくなりますよね ガッツリ作る必要もない時はテンプレートで適当に作ってしまえばいいんじゃない? <Window.Resources> <Style x:Key="WatermarkTextbox" TargetType="{x:Type TextBox}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type TextBox}"> <Grid Background="White"> </grid></controltemplate></setter.value></setter></window.resources>