我曾尝试创建一个样式来应用于任何页面(如母版样式),以便在角落中包含一个小水印,但这种样式不起作用。
<Style x:Key="WatermarkPageStyle" TargetType="Page">
<Setter Property="Template" >
<Setter.Value>
<ControlTemplate TargetType="Page">
<Grid>
<ContentPresenter/>
<TextBlock TextAlignment="Right" VerticalAlignment="Bottom" FontSize="25" Foreground="Blue" Text="Watermark"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>有什么问题吗?有解决办法吗?
发布于 2014-03-17 03:40:17
微软employee says表示,这是一个已知问题,您应该在本地设置这些值。
https://stackoverflow.com/questions/22439536
复制相似问题