I want to make the SurfaceScrollViewer use Black thumbs instead of white. I have not found anything explaining how to do this, I have managed to change the Color of the Scrollbars itself, but the Thumbs are always white.
How can I change the color of the SurfaceScrollViewer thumbs?
If you mean a wpf usercontrol with "SurfaceScrollViewer" you could right click on your scrollviewer (in the design view) -> edit a template -> edit a copy and change the thumbs in the template.
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 made a simple design for my WinForms app in Photoshop and I want to make some borderless buttons. In FlatAppearance properties, I changed border size to 0 and the FlatSyle is Flat but when the mouse is hovering on the button, its background color turns to grey, although I changed it to transparent. I'll attach some pics to get the problem better.
Can somebody help me, please?
How I want to look:
how it looks
In the same place that you changed the border size to zero, change the MouseOverBackColor to Transparent:
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.
I am using the WPF expander like a drawer, it expands up out so that the header remains above the content. When it is collapsed the grid cell that it is in is made smaller as well.
I want the expand direction to remain down so that the content fills in below it, however because it moves up it would look better if the icon with the directional arrow were in the opposite direction as if the ExandDirection property were set to Up. How can this be done in either C# code or in the XAML.
Thanks
If I understand correctly that you want to swap arrows for expander collapsed/expanded state, you'll need to create a custom control template for expander.
The easiest way I know to do that is to get expander control template from wpf theme and rename styles:
ExpanderUpHeaderStyle to
ExpanderDownHeaderStyle
ExpanderDownHeaderStyle to
ExpanderUpHeaderStyle
You can download themes sources from here
http://msdn.microsoft.com/en-us/library/aa358533(VS.90).aspx
If you'll have any issues with that, let me know what wpf theme are you using and I'll make you the xaml.
Also have a look how to customize Expander with Blend
http://www.c-sharpcorner.com/uploadfile/dpatra/807/default.aspx
I would like to put a LinkLabel with a transparent background over a TabControl. The tab control has NO tabpage.
As it's not possible to add controls other than TabPages to a TabControl, what I do it add the LinkLabel to the control that contains the TabCOntrol, and then use BringToFront on the LinkLabel. This displays it over the TabControl.
Problem: The LinkLabel displays as transparent (BackColor Property), but instead of showing the TabControl's colour as background, it shows the background colour of it's parent, the control that also contains the TabControl.
From what I understand, this is normal behaviour as a Transparent BackColor means that it'll just take the parent's colour.
Question: Is there any solution to display my LinkLabel with the TabControl's background colour?
Thanks
I may be wrong about this, but I think that if you change the LinkLabel's BackColor property in code (e.g. in your form's Load event, as opposed to just setting it in the designer) to match the color of your TabControl, it will work the way you want it to.
Thanks for your answers. I'm now get what you meant.
Using the tab Control's BackColor won't work, because this property always returns the ColorSystemColors.Control, which is greyish. However, when using visual styles (e.g. XP's default theme), the TabControl's back colour is kind of white. I cannot use white either as the tab control is not pure white, but gradient white...