I am using Telerik RadWaitingBar control with style as DotsLine in C# WinForms application. There is no property in RadWaitingBar to change color of the moving dots. I want to change the color of moving dots to white. How to achieve that?
Have a look at this Telerik Documentation. There are various properties that you can play with. e.g. you can change the background color if your dots are not visible etc.
Related
Is there a way I can change the icon of the expander to +/- with the color white as the foreground color? I've been looking everywhere but cant find a simple solution. Or better yet, how do I change the color of the expander icon to white? My background is a dark color, so this is why I'm asking.
You will need to create a custom control template, see this CodeProject article: http://www.codeproject.com/Articles/248112/Templating-WPF-Expander-Control
You need to change the Template, you can base it on the existing template though.
I am using a lot of DatePickers in my C#/WPF application. The people who will be using this app. usually are old and have problems with seeing/reading.
I need to change the pale color of the text to something darker so anyone can read the text in the DatePicker.
How and where can I do that?
I am using Visual Studio 2010 and I see only 4 color properties in Brushes section: Background, BorderBrush, Foreground and OpacityMask.
Or I should be doing this with code, set the Brush with code?
The Foreground property sets the text of the DatePicker in an enabled state. When the DatePicker is disabled, the control template adds a semi-transparent overlay to the control.
You can find the default template here. The overlay is defined in the PART_DisabledVisual Grid. To fix your issue, you can copy the entire ControlTemplate in your code and modify the two Rectangles with Fill="#A5FFFFFF" to Fill="Transparent".
I have a lot of custom control on which various styles applied in my project. For example, I have grid control inside my custom control and I set its background color using dependency property of the custom control like this:
<!--MainWindow.xaml-->
<CustomNS:MyCustomControl BackColor="#FF00a6ac"><CustomNS:MyCustomControl/>
<!--Generic.xaml-->
<Grid Background={Binding BackColor}>
What I want to do is to make gradient from given color in my dependency property and to apply that gradient on the control. Second color should be generated according to the first color. Namely, second color can be bit darker than the first one.
To illustrate this, check the image below:
How can I provide little darker color from the given hex color in the property?
You should use LinearGradientBrush
Here you'll find a good example
I'm using Telerik WinForms, the lastest version.
I have pie chart, 1 series with 4 datapoint and assigned a custom palette with 4 colors (red, green, orange and blue), only first fill color, no additional setting. This works well so far. I also want to display the according labels. This works also, but all the labels have the same background color as it corrensponding data point/segment. That I would like to change.
When I don't use any palette than each segement has its own color but the all the labels have white background.
Is there a way to change the background color of the labels?
There is no way for me to switch any other than winforms.
Also if there is no way of doing it, I would like to know.
If you need more information and/or screenshots please ask, it would be no problem.
I asked the same question in Telerik forum and they provided a working answer. It can be found here http://www.telerik.com/community/forums/winforms/chartview/how-to-choose-a-different-background-color-for-a-chart-label.aspx
I'm using the DatePicker control from the WP7 SL toolkit. It navigates to DatePickerPage.xaml, which has the scrollers for date picking. I want to keep all the functionality, but change the colors. I'm messing around with DatePickerPage.xaml and updating colors to fit my needs.
I've been able to update the text colors on the scrollers and header, but I can't figure out how to update the background color on the selected item in each or the square outline while the scroller is active. Based on tests I have done with changing the background color of the DatePickerPage.xaml, it appears that the selected item and square outlines are an opaque version of the background color. Unfortunately, this wont work for me, since I want the background to the be white and the outlines aren't visible. Is there a way to explicitly set those colors?
If you get the control into Blend and right click on it and select Edit Tempate --> Edit a Copy, you'll get the template for the control so that you can edit it.
What you'll be looking for is the resources keys that are used for the background, foreground, etc. You can replace them with your own resources, or hardcode them, or the best option is to override the resource.
Additional Advice
Be careful though, don't forget that a user can have either a dark or light background to the phone, so unless your app is taking control of the background color of the whole page, you need to consider what might happen when picking colors