Set Image colours while theme change - wpf

In WP7 suppose we are having a TextBlock with Foreground as DEFAULT and we change the theme of phone than foreground will be adjusted automatically so that its(TextBlock's) text can be seen properly with any theme . Is there any way to do same to some if we are having image kind of control so that the control can be seen with any available THEME of WP7 in proper OR presentable manner

Yes, you can adjust the image to the dark/light theme, using the PhoneDarkThemeVisibility and PhoneLightThemeVisibility resources. I would suggest using a ValueConverter.
You can read more on MSDN

Related

How to change windows style with MaterialDesign in wpf

I use MaterialDesign for style controls in wpf add.
I change all controls use MaterialDesign theme. I want to change windows style(WindowTitle, close,min,max button).
How to change this?
For this purpose you need to set Window Style (Border settings) = None and need to set user controls manually and apply code as per your requirement.
Or you can built your own custom control for this.

Menu/Toolbar color in WPF app

So I have a simple WPF app with a menu and a toolbar/toolbartray inside a Grid. By default, the colors don't match (the menu is grey and the toolbar is blue - see image)
I have tried specifically setting the background color but there are then other issues (toolbar overflow button colors and sub menu colors.)
Strikes me that by default, the colors should match and also match the system theme. Is there a magic setting? Surely I can't need to specifically style everything?
Thanks
Get default ControlTemplates of that controls.
Menu
ToolBar
Add new ResourceDictionary to your project and insert that templates
Change background properties in root Borders of templates.

Global winforms styling

Are there global styles in Winforms as there are in WPF?
I'd like to be able to, for example, set ForeColor to be used by all the labels that exist within the app. Is there any solution, or do I have to do the changes manually for all the controls separately?
Most controls will inherit the font from their parent - so try setting the font styles you want on the window.

How do I override the default Windows Phone theme for my app?

Lets say that, regardless of what color settings the user has, I want my app to have a white background with blue foreground elements, like the Skype app does.
How do I go about that? I've found how I can make elements use the system brushes, but I can't figure out how to change those default brushes. I also can't find where the background color is specified at all.
You can use a library created by Jeff called PhoneThemeManager. You can find the article about the same here: PhoneThemeManager. Just download it from NuGet and modify your app.xaml.cs file to get Light (white background) theme activated. The code is simple:
ThemeManager.ToLightTheme();
Once you apply the theme, all your pages will have white background. For blue foreground elements, you'll need to create your own styles and apply them to elements. I'll prefer Blend to create design template over here as you'll get WYSIWYG interface. Using system brushes will not help as those will change according to Accent color. Creating your own styles will give you more freedom and control.
I hope this helps.
Check out how to apply theme resources to wp8 app, it describes exactly what you're looking for.
The most convenient way to accomplish this Task is to use Expression Blend.
Expression Blend is most suitable for this purpose as it will provide and intuitive interface.
The Interface is shown below for a WP app (7.1, it applies to WP8 as well)
The interface is easy to use.
Select an Item on Objects and Timeline
An object is selected and UI updates in middle.
Now Check the right side for properties. See the Background is selected. Select the required color of choice and other properties.
Pros: This applies to various elements including Menu Items, Buttons and all.
Cons: Items such as MessageBox can't be customized this way.

How do I change all the Silverlight Telerik RadButton colors at run time?

This question is in regard to the Telerik RadButtons for Silverlight. I have themes per customer on the site where Silverlight is used. I am able to change the background and foreground colors by setting the Background and Foreground brush properties. However, the styles revert to the standard colors while hovering over the button. How do I change the colors for all button states?
I attempted to set the Resources dictionary as shown on Telerik Styles, but it appears to be read-only.
More information on how to style a RadButton you can find here: http://www.telerik.com/help/silverlight/radbuttons-styles-and-templates-overview.html

Resources