application-bar

Windows Phone ApplicationBar BackgroundColor property style XamlParseException

烈酒焚心 提交于 2019-12-01 20:44:10
问题 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? 回答1: I believe, ApplicationBar properties

Windows Phone ApplicationBar BackgroundColor property style XamlParseException

∥☆過路亽.° 提交于 2019-12-01 19:15:14
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