Set Background color of ApplicationPage Windows Phone - 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.

Related

How to change the app icon background color in react-native for android

Please how do I properly change the default background color of app icon which is white to a one of my choice?
I'm using React-native 0.62
if your icon has already a white background you are not able to change that from the app,if you want to do that it need some complicated border detecting and then you can change it!, you need to modify changes outside of app, or just make its background transparent with Photoshop then use and give background to its parent.
i hope it helps

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

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;
}

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.

Overriding Windows 8 application theme for a specific UserControl

I'm developing a Windows Store app using the "Dark" theme, which works fine for the main body of the app. However, for the settings flyout, I want to match the appearance of the system-provided "Permissions" flyout, which is to say, black on white.
Unfortunately, that's rather hard to set for every control with the Dark theme in operation.
Is there a way to use the "Light" theme, overriding the application default, for the UserControl I'm using for my settings pane, or is the only way to to do this to copy all the relevant chunks of the theme file for it into the resources of the UserControl?
I had this exact same problem - using the dark theme, and also using a light background for the settings flyout. The research that I did didn't turn up anything either. I ended up having to style my controls so that they would appear properly on the light settings flyout.
One other thought that I had was this, although I didn't go down this path - to use the light theme as the default, but change my app styling so that the main elements would appear dark. This would mean that the flyout controls would not have to be restyled. I guess it depends on how many controls you are using, and which path is easier.
If you go down the 2nd path, your app obviously loses the ability to change themes on the fly.

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.