私はこのlibを使用します:http : //winrtxamltoolkit.codeplex.com/ WatermarkTextのFontSizeを指定したいのですが、どうすればよいですか?
ありがとう
私はこのlibを使用します:http : //winrtxamltoolkit.codeplex.com/ WatermarkTextのFontSizeを指定したいのですが、どうすればよいですか?
ありがとう
Watermarkプロパティの代わりにプロパティを使用しWatermarkTextて、透かしとして必要なものをすべて配置できます。たとえば、TextBlock必要なプロパティを使用できます。WatermarkTextStyle使用時にプロパティを使用して、提供された透かしで使用するようにWatermarkText指定することもできます-次のようなものです。StyleTextBlock
<xc:WatermarkTextBox
WatermarkText="Type something">
<xc:WatermarkTextBox.WatermarkTextStyle>
<Style
TargetType="TextBlock">
<Setter
Property="FontSize"
Value="18" />
...
サンプルをチェックして、ここでいくつかのオプションを確認できます。