Styling Windows Phone 8.1/WinRT AppBarButton - windows-runtime

I'm currently looking to implement a CommandBar for a WinRT Windows Phone 8.1 app. Overall it is very straightforward but I am unable to style the control.
I have themed my app so that the accent colour has been changed to green. This works well for pretty much everywhere in the app (buttons, textblocks etc.) but not for the AppBarButton.
The brushes I'm overriding are SystemColorControlAccentBrush and PhoneAccentBrush but changing these does not make any difference to the colour of the AppBarButton when pressed:
Any idea what I'm doing wrong/can this colour be changed?

Set the CommandBar's foreground and background colors.
The command bar on Windows Phone is system UI not app UI and does not allow customizing the colors of individual AppBarButtons. Their colors always come from the CommandBar's colors.

try changing app bar button color
<AppBarButton x:Uid="SendMessageButton" Icon="Send" Foreground="" Background="" Command="{Binding SendMessageCommand}" IsEnabled="{Binding IsSendMessageButtonEnabled}"/>
or change in code behind
AppBarButton app = new AppBarButton();
app.Foreground="";
app.Background="";

Related

Changing the Accent Color in Windows Phone

How to set the active background color of the elements like button while clicking irrespective of the phone's current accent color?
There is a nice library for that in NuGet called Windows Phone Theme Manager. Type "theme manager" in the search box of NuGet manager window and you will find it.
Then all you have to do is add one line of code in App.xaml.cs file at the end of the constructor:
ThemeManager.SetAccentColor(AccentColor.Blue);
Blue is just an example. You can use any color.

Windows Phone 8.1: How to change the color of the Title text of ListPickerFlyout

I have a Windows Phone 8.1 Application. I have a button with a ListPickerFlyout in it.
The color of my title regardless of the theme is always white. How do I change the color of the title so that it can adapt to the different themes?
<Button x:Name="myButton">
<Button.Flyout>
<ListPickerFlyout x:Name="myListPicker" PickerFlyoutBase.Title="HELLo">
</ListPickerFlyout>
</Button.Flyout>
</Button>
I might have overridden a themebrush to be always white which might be causing this issue. The solution I'm looking for is something that can help me make the color adaptable to the theme local to this particular file in which the button resides, it shouldn't affect other places/titles.
I would be very glad if someone can point me in the right direction. Thanks in advance.

Windows Phone 8.0 control app image when in background

Is there a way to control what the WP8.0 app screen looks like when in background task. I mean when cycling over the apps after a long press on back button ?
I'm using a custom Prism, and I tried to set a different background from OnNavigatedFrom but it seems that the page is already unbound at this moment because this has no effect on the page.

Inconsistent default button behavior in WP8.1 Universal versus Silverlight 8.1 / Windows 8.1 / earlier

Why is the default button visual behavior on click different in Windows Phone 8.1 "universal" apps? Is there some way to restore it to the behavior consistent with all other versions of Windows Phone/Windows 8 or do I need to create a new custom control?
Windows Phone 7/8/8.1 Silverlight/Windows 8.1: Button background flashes a complementary color based on theme, button stays fixed.
Windows Phone 8.1 "universal": Button background doesn't change color, tilt effect is applied to the button displacing it based on where the user has touched it.
I'm a beginner developer with some experience in developing WP7/WP8 apps, trying to make my first universal app for WP8.1/Windows 8.1. I verified this behavior in VS2013 Update 2 RC with a new Windows Store App, new WP8.1 Silverlight app, new WP8.1 universal app and one of my existing WP8 apps by just creating a new button object in xaml. Appreciate any help!
In my own test, the button does change color to the PhoneAccentBrush resource.
But if you want to remove the tilt effect, you should just edit the style of the button. Since you claim to be a beginner, I'll explain how to easily change the style using VS2013. Maybe you don't know this yet.
Right-click your Button in the designer, goto Edit Template... on the menu, then select Edit a Copy...
This will generate the standard button style in your xaml which you can edit. FYI, this will change your document outline to the button style outline. (See Document Outline window in VS2013.) To go back to the page outline, click the up arrow icon at the top of the outline.
Anyways, find the < VisualState x:Name="Pressed"/ > line and then comment out the PointerDownThemeAnimation line.
Done!

change background color of wp8 app layout

I'm interested to know, How can I change the background color through programming in WP8 App. When I navigate between the pages in my app, the background color that appears is visible at the moment of swiping pages which is either white or black(depends on theme)
Today I had downloaded Imagefusion app from the Store, where background color you see while navigating between pages is light beige, but not white/black. Do you know how can I change the background color of the app layout? Thank you.
I'm using c#, visual studio 2013.
you must be having Grid at top most layer say gridRoot
then, If you want to change its background color programmatically then use:
gridRoot.Background = new SolidColorBrush( Colors.YourColor);
As you haven't set background color to Grid, it shows default color i.e. your theme color.
http://social.msdn.microsoft.com/Forums/en-US/e0fddd42-ecb9-4a2b-b5e5-10f464cdf3e6/change-background-other-than-dark-or-light-in-app?forum=wpdevelop
Here is the easiest way that fits my expectations. I guess this method also works. Thank you very much for your help.