I had a lot of pages in my application and I had decided to make a global ApplicationBar style in App.Resources:
<Style TargetType="shell:ApplicationBar">
<Setter Property="BackgroundColor" Value="#006699" />
</Style>
However, when I tried to start the app, VS gave me an error:
The property 'BackgroundColor' was not found in type 'Microsoft.Phone.Shell.ApplicationBar'.
This isn't true - ApplicationBar.BackgroundColor Property. What's the problem?
I believe, ApplicationBar properties cannot use
Binding
or styling the way you're trying, as it is not a silverlight control. Although you can put thewhole
applicationbar as a resource. Like soEDIT: Or you could just put this in the resource if you want your application bar color to change.
And add buttons from code behind. although, I haven't come across a scenario where this would help.