SuperJMN
SuperJMN

Reputation: 13972

Windows Store Apps: Style TargetType="Page" not being applied

I have tried to create a Style to apply to any Page (like a Master Style) to include a little watermark in a corner, but this kind of style doesn't work.

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

What's the problem? Is there a workaround?

Upvotes: 1

Views: 177

Answers (1)

crea7or
crea7or

Reputation: 4490

Microsoft employee says that this is a known issue and you should set these values locally.

Upvotes: 1

Related Questions