White Border Brush On AppBarButton - Windows Phone 8.1 (Runtime / Universal App) - windows-phone

this is only happening in Windows Phone 8.1 Preview for Developers, so I think it's a bug. I'm looking for some workaround.
The AppBarButtons are with a white border brush while focusing, take a look in the bottom of the image:
I noticed this only happens when I override CommandBarForegroundThemeBrush, in my case to Black, and the phone theme is Black. When the phone theme is White, the border is black.
If someone know any workaround please tell me. Or the right place to submit this issue to the wp team.
I tried changing a lot of resources, including FocusVisualBlackStrokeThemeBrush and FocusVisualWhiteStrokeThemeBrush, but it has no effect.
Thanks.

I've had this issue with a couple apps and just request it for the whole application on start in the App.xaml.cs constructor.
public App()
{
this.RequestedTheme = ApplicationTheme.Dark;
this.InitializeComponent();
this.Suspending += this.OnSuspending;
}

Related

Changing the Overlay background color for ContentDialog

For my UWP app, I want to override the default theme of the background color of the screen around the content dialog when it opens. I tried doing what's mentioned in this answer but it didn't work for me: https://stackoverflow.com/a/32159659/2858235
My OS build # is 10586. I read somewhere that this solution is no more working for builds equal and above 10586. Is there any solution?
For me, my SDK version is 14393 (Anniversary) and the SolidColorBrush resource to override is SystemControlPageBackgroundMediumAltMediumBrush (that's a mouthful!).

Overriding Appbarbutton brushes wp8.1 (Winrt) not working

I try to override AppBarItemPressedForegroundThemeBrush in my App.xaml to change the highlight color when pressing on icon in the appbar. I do not understand why this is not working. I thought in WP 8.1 it is possible, but no color overriding nor applying any custom style is helping. It will be all completly ignored. In WP 8 at least I could override the accent color, but this is no more possible, or I do not know how.
Does anybody can help me?
It would be great.
bye
Markus
You cannot override the colours on individual AppBarButtons in the AppBar on Windows Phone. You can set the foreground and background colours of the AppBar itself and that will reflect in the AppBarButtons.

How change System Bar Progress Indicator Color in Windows Phone 8.1 (Windows Runtime, Universal)

How change System Bar Progress Indicator Color in Windows Phone 8.1 (Windows Runtime, Univesal) like Facebook Beta App.
Image:
http://imgur.com/4Mm4SWV
Obs.:
1 - The phone accent color it's not white (FGS)...
2 - The foreground color in system bar was already hooked to white...
3 - I already tried change the App.Resources like "PhoneAccentColor" and nothing...
Edit: Understood question incorrectly. Will get back when I find a solution.
To achieve that you have to change the StatusBar ForegroundColor property. Since there is no way to change it through XAML, it has to be done through code behind like so:
StatusBar statusBar = StatusBar.GetForCurrentView();
statusbar.ForegroundColor = Colors.Black;
///And then show or hide the Progressindicator like so
await statusBar.ProgressIndicator.ShowAsync();
await statusBar.ProgressIndicator.HideAsync();
I'm using this and it works perfectly.
For more info on the StatusBar (and it's baked in ProgressIndicator) check out these blog posts by Shawn Kendrot:
Differences between the new StatusBar in Windows Phone XAML Apps and the SystemTray
Showing the system ProgressIndicator in a Windows Phone 8.1 XAML app

Set Background color of ApplicationPage Windows Phone

My Windows phone application working fine with dark color scheme but When the device's theme is set to light my background become white due to that my buttons disappear. How can i set my app background to black even device theme is light???
Try this:
find LayoutRoot and set the Background to your choice of color.
<Grid x:Name="LayoutRoot" Background="Black">
Please see the response at How to stop an (InputScope = Number) textbox from disappearing when it gains focus? for more information on templating controls to override the default system theme.
Also note that I recommend not doing this for the sake of forcing light or dark theme. Unless you've got your own custom branding / color scheme, this is a lot of work and could be annoying / confusing to the user.

Set Background of ToastNotification

I want to know that how we can change the background color for the toast notification in Windows Metro (or Desktop) app.
Thanks in advance.
Foreground:
You can set "Foreground text" in you app manifest to dark or light.
Background:
This follows the "Background color" of the app manifest - and hence will be the same as the app's tile background.
For most of the apps I've worked on, it's enough to set the tile color according the UI spec - and then set the 'foreground text' to light or dark. You can surely override the light/dark themes if you want to too.
For desktop apps, the background color used on toast notifications (and Start screen tiles) is not configurable by the app itself. The color for the tiles is determined by the Start screen color theme chosen by the user (PC Settings -> Personalize -> Start screen), and the color of the background of toast notifications is always gray (when not in a high-contrast theme).
I think it always use the color that is specified in your manifest file. So to change the color, you have to change the color of your whole application.