Can't set the color of the progressbar from Fabric UI - office-ui-fabric

I'm trying to set the color of the progressbar from fabricUI. I trying to use the style attribuut, but it doesn't have this attribuut. Trought the attribuut className I'm able to set the background, it seems it doesn't not accept the foreground style.
Also tried putting it in a div, but that also doesn't work.

Related

XAML Theme Brushes - Switching Dynamically, cursor doesn't change

First Off, I found this extremely useful page on theme brushes:
http://metro.excastle.com/xaml-system-brushes
So Roughly, on startup for WinRT/XAML I am setting my theme brush for a textbox in a stylesheet:
Foreground = TextBoxDisabledForegroundThemeBrush
Background = TextBoxDisabledBackgroundThemeBrush
Which at run time makes the textbox appear as: white border, transparent background and grey text. Which I was hoping it would make it transparent, white border and white text.
On my Tapped event, I change the textbox to:
Foreground = TextBoxButtonPressedForegroundThemeBrush
Background = TextBoxButtonPressedForegroundThemeBrush
Which is supposed to be black background, white text and white border. Which seems right, but the cursor is back and you cannot see it.
First question is, am I doing this right to change my text color? I want to change the textbox so once it is selected it stays a changed color. I think this is correct. But I am not sure if I should be setting Foreground or maybe a Font Style instead?
Unfortunately you can't change caret color so if you want your TextBox editable - you should keep the background white or otherwise light. Otherwise, controlling the look of your control in its various states is best done using VisualStateManager and that is easiest to manipulate using Blend.

WP8 PhoneAccentBrush doesn't affect TextBox focus border

I'm trying to make my WP7 app work well on WP8 (by compiling it as a WP8 app).
In my app, I'm changing the PhoneAccentBrush's Color which seems to work fine still, however TextBox's in WP8 now seem to show a border around it when the textbox is in focus (this wasn't happening for me on WP7). This border seems to always use the System's accent color instead of using the changed color like every other control.
Any idea what's going on here and how to change it? The red accent (if that's what the user has chosen) really clashes with my app's colors!
I would call overriding the accent color a hack. I would avoid setting the accent color and create a template for your textBlock.
Blend makes this very easy by allowing you to copy the default template and make changes to it.
Right Click the textBox in the Objects and Timeline pane, then select Edit Template -> Edit Current. Then select the States tab and select the Focused FocusState, then edit the border brush. Save and reuse the template as needed.
I did notice the textBox control template has changed in 8 and now defines the focus state border brush, although it does default to the PhoneAccentBrush.

Is it possible to programatically set Petrel's Window3D's background color?

Is it possible to programatically set Petrel's Window3D's background color?
I saw that you can use the ISettingsInfo to get/set the color, but I am wanting to know how to make the window's background update.
Beginning in 2012.1 you can get (or set) the background color for a Window3D by querying for the appropriate IColorInfoFactory and getting the ColorInfo instance for the window in question. However, this only applies when the window is toggled to its non-black state.
The Petrel 3D Window's "Change background color" function toggles between black and the color specified in the window's Settings tab. Unfortunately, the ColorInfo API only exposes that color from the Settings tab, so as of 2012, there is no way to know whether the window is currently toggled to a black background or to the specified color.

Change tint color of keyboard for UITextField

I would like to set a custom color for the keyboard that is associated with a UITextField. I see that I can set the UIKeyboardAppearanceType, but I would like to be able to set the color to arbitrary color, rather than just change to a different default setting. I was hoping it would be as simple as something like this:
keyboard.tintColor = [UIColor colorWithRed:...]
Any suggestions?
There's no public API to access the system keyboard, so you're out of luck without re-writing UIKeyboard from scratch (which is a bad idea), or finding some private API to do the job (which is a bad idea if you want to submit to the App Store).
You could use Alert style keyboard and place a view in the background with a background color of your choice. This will make the keyboard a different color.
In Xcode look for the 'Keyboard Look' attribute in the Text Input Traits section of the Attributes Inspector. Can toggle between Light/Dark.

How to apply a color to the SystemTray globaly in wp7?

I already know how to set the color for the SystemTray in WP7, I was just wondering if there was a way to change it in one place and have it applied to all pages instead of having to explicitly set the color on every page.
You could create a Application Resource for the color and then you could apply this color resource in every page you have with Binding.
Or you could use MVVM and have a property in your ViewModel and Bind to this property.