I am using Telerik Winforms in my application. I am looking for the closest theme color combination that matches the client branding requirements.
I have chosen "Office2010Silver" but I need to change the orange color into red for the entire application.
It is painful to edit the children elements and the primitives for each and every different control. I am wondering if I can use color blending or any other feature to write some code to change the color of the entire application theme.
Thanks.
Color blending is available as of the Q2 2015 release. Here is more information about it: link
Related
Is there a way to change the pressed effect of a button on Android in a .NET MAUI project. Now it is showing a dark ripple effect when dark mode is on and a white ripple effect when the light mode is on.
I would like to have the same ripple color for both dark and light mode. I tried to change the colorPrimary and colorPrimaryDark values but nothing changes.
The simplest way to achieve parity in both modes (and potentially across platforms) might be to override the button's default style with your own.
You can look into the default button style template, make a copy in you apps resources, and change the colors used to from default staticresource or dynamicresource to your desired color palette.
Working on an app and as part of it I need to recolour it to match the phones accent color.
What I have is a gray scale image with transparent sections and want to change it the colored.
The white sections will be the pure accent color
Gray sections will be the accent color faded
Black sections will be black
I've done this in the past, but never with a universal app.
Any help or suggestions would be great.
Thanks,
You can use Lumia Imaging SDK to apply some basic effects on your image.
If it doesn't fit your requirement. You can use Win2D to work on your picture. You can find a good example of Win2D by this link: Shawn's Terrific Universal App for photogRaph Tweaking.
It is kinda baby question but it is important for the visual appearance of my app.
When I installed Windows 8 DevPreview on my PC os proposed me to choose the color scheme for Metro UI. I preferred teal color. It is something like next:
So I have this color scheme for background and for setting background. Now I want to implement the custom setting for my app. Something like next:
But for good user experience, I want to keep my settings in the same color that system. In the current moment, I set settings background manual. But it isn't a solution because a user can prefer another color scheme. I've checked in StandardStyles and in main generic XAML file. But looks like that I missed it. I would be pleasure if anybody help with this.
This value is not available in the current SDK. Though the initial settings flyout pane does match the system color, you'll notice that any custom settings panes are usually white or a color that matches the application.
Take a look at the Bing Weather app and you'll see what I mean. All of the applications custom settings have a blue background (even though I personally have a teal theme).
Also, don't get confused by the "Permissions" settings. That dialog is also provided by the OS.
In Windows.Forms, I was not able to reproduce the exact same TextBox border as you see it in Vista / 7 Aero. All I get is a gray rectangle instead the slightly sunken gray / blue 3d border. I tried the following methods with no success:
VisualStyleRenderer class
TextBoxRenderer class
Control.DrawToBitmap()
P/Invoke with UxTheme and friends
Drawing RichTextBox elements instead of TextBox ones
This problem has already been discussed here but with no solution: http://social.msdn.microsoft.com/Forums/hu-HU/winforms/thread/46e66852-b52e-420d-8fe0-b717f86ecb18
It looks like there's no obvious solution for this problem.
Does anyone know how to draw the exact same border as in Aero?
It's probably not going to happen for you.
I think the VisualStyleRenderer, including the TextBoxRenderer, were more meant for the XP themes.
Even the Control.DrawToBitmap(...) function magically draws a different version from what is on the screen.
I don't have the canonical answer for this, but it's most likely a result of Microsoft moving on with WPF and leaving behind the WinForm controls with those visual themes half-baked.
The only answer to this question is to use WPF or use a 3rd party system like DevExpress (which support custom themes) if you need to "theme" all of your controls.
I am using C# to make my desktop applications.
But I want to make more graphical applications that have full transparency backgrounds and different levels of transparency for picture box controls.
Basically, not cookie cutter opacity of removing a solid color.
How can I accomplish this with C#?
It is simple, just go ahead with WPF. This gived me a good start point.
This should help:
http://www.c-sharpcorner.com/UploadFile/scottlysle/XparentFormsCS10282007212944PM/XparentFormsCS.aspx
also
form2.Opacity = .x; where x is percentage of transparency
or
transparency can be directly edited in appearance property of form in case you are using VSTO