Changing the Overlay background color for ContentDialog - xaml

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!).

Related

How to Set Scrollbar theme in XAML webview?

I'm creating a windows 10 xaml app. One of the views contains a webview which fetches some html.
My problem is that although the default theme on the app is set to dark, the scrollbar in the webview is always light, which jars against the rest of the UI.
I've tried setting the RequestedTheme=dark on the webview, but no joy
Unfortunately this isn't possible since the WebView is based off of Edge and Edge doesn't currently support it, as you can see here. If Edge gets this feature, you could simply insert a STYLE into your head element to define the color.

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

App Inventor : background

I recently installed a background for my project on app inventor, and then after I tried running the background behind the text in the emulator. On my designer screen I have put the background image behind the text which is the normal condition?
it's hard to understand, what you are saying... but try to set Screen1.BackgroundColor to none
rephrasing your question might help
yes, you can set the screen background from the designer view by uploading an image at BackgroundImage textfield and if there are many uploaded image, choose the right one.
any component added will be displayed above the image !
with blocks you can do :
when screen1.Initialise
do:
set screen1.BackgroundImage to |your-uploaded-image|

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.