Xaml Windows应用商店应用程序:样式TargetType=";第页“;不适用

Xaml Windows应用商店应用程序:样式TargetType=";第页“;不适用,xaml,windows-store-apps,Xaml,Windows Store Apps,我曾尝试创建一种样式来应用于任何页面(如主样式),以便在角落中包含一点水印,但这种样式不起作用 <Style x:Key="WatermarkPageStyle" TargetType="Page"> <Setter Property="Template" > <Setter.Value> <ControlTemplate TargetType="Page"> <

我曾尝试创建一种样式来应用于任何页面(如主样式),以便在角落中包含一点水印,但这种样式不起作用

<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>


有什么问题吗?有解决办法吗

Microsoft认为这是一个已知问题,您应该在本地设置这些值。

您可以显示一些代码吗?添加了XAML片段:)您可以发布页面的XAML代码吗??前5行