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.
Related
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!).
I'm developing a Universal Windows App in VS2015 (C#, XAML).
I have an AppBarButton on a RelativePanel, The panel's background is black.
When I move the mouse over the button (Hover), it turns black with a darkgray background, which is not visible on a dark background:
Please tell me how to change the colors for the button in all mouse states: hover, mousedown,...etc.
Thank you
You need to create custom style template for button to overwrite the hover effect and behaviour.
Please open the button in Blend by using Edit A copy and then edit its template! you might need to remove some element.
Mostly it shall be a button as the property of changing color is exhibited by a button control
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;
}
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.
My (cocoa) application has an usability problem with Lion (OS X 10.7). There is a scrollable component that has a dark background, so it is hard to see the default transparent dark scrollbar.
Is there a way to replace the appearance of the scrollbars with a lighter (white) one? Safari and other browsers seem to do this dynamically based on the websites backgrounds, but I have found no easy solution for a native cocoa application. Is there a solution that do not involve subclassing NSScrollView?
[myScrollView setScrollerKnobStyle:NSScrollerKnobStyleLight];
From the NSScrollView Class Reference.
If your window is created in IB, you can change the scroller style in the Attributes inspector.