Error when using StaticResource
Last post 05-08-2008 8:48 AM by gwphillipson. 2 replies.
Sort Posts:
05-08-2008 3:49 AM
Error when using StaticResource
 Hi I'm trying to use StaticResource in my xaml page, but i get the error below when viewing in web browser
 
InitializeError- Invalid or malformed application: Check manifest
 
Any help would be appreciated
George
 
My code is:
 

<Application xmlns="http://schemas.microsoft.com/client/2007"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

x:Class="Forum.App"

>

<Application.Resources>

<Style x:Key="PlayPauseStopButton" TargetType="Button">

<Setter Property="CornerRadius" Value="5"/>

<Setter Property="Background" Value="#000000"/>

</Style>

</Application.Resources>

</Application>

 

============================

 

<Button Click="Media_Play"

x:Name="mPlay"

Style="{StaticResource PlayPauseStopButton}"

Canvas.Top="261"

Canvas.Left="10"

Width="40"

Content="Play">

</Button>

gwphillipson

Joined on 04-25-2008
Posts 19
05-08-2008 4:19 AM
Marked as Answer
Re: Error when using StaticResource

The Button does not have a CornerRadius property. Remove  this from your style and it will work.

Hope this helps,
Jim (http://jimmangaly.blogspot.com/)

Please MARK the replies as answers if they answered your question

http://www.identitymine.com/

Jim Mangaly

Joined on 04-21-2008
Kochi, India
Posts 108
05-08-2008 8:48 AM
Re: Error when using StaticResource

Thanks Jim

gwphillipson

Joined on 04-25-2008
Posts 19