Currently, I can highlight focused row by changing background appearance color in RowStyle event. But it does not provide to change border of that row.
I tried override DrawFocusRectangle of XPaint but it will not be shown in case the grid is not focused.
Anybody gives me another way, please?
You need to use the CustomDrawCell event and paint the row border.
How to draw thick cell borders by handling the Paint event
If you want to achieve excel like selection functionality, the paint event will give you a better result - http://www.devexpress.com/Support/Center/p/Q202033.aspx
Related
I have a custom button (the pencil image) which on mouse over shows the "Rename" box, but in my listview is enlarging the current row (so that both pencil image and Rename box fit inside the row height)
What should I use to make it look like the image attached?
I think that is ToolTip. you can customize the your ToolTip to look like that.
if that is not ToolTip, you have to use Adorner.
I have a WPF application. I am trying to create a ellipse toggle button. I wanted to have a textbox in the ellipse with two images next to each other below the textbox. In my other buttons I have added a grid with two rows to achieve this.
However it doesn't like it when I try to add a grid to an ellipse. "The type ellipse does not support direct content". What does this mean? Is it possible to do what I wish?
This particular error really couldn't be too much clearer:
The type Ellipse does not support direct content.
The Ellipse Shape is not a ContentControl. Therefore, it does not have a Content property. This means that you cannot add any content to it.
What you can do is to add a Grid with no columns or rows defined and add your Ellipse into the Grid. Then you can overlay other UI elements in front of the Ellipse, which may appear as if they were inside it.
I have a stackpanel with a background image. Inside the stackpanel there is a ListBox and its background is set to transparent, what I need is to blur (glass effect) the background image only the part that comes under the listbox item. I tried to add a rectangle to transparent color in the listbox item template and then added a blurred effect but it doesn't work. This is what I am trying to achieve.
I came across this some time ago, maybe will help with what you're after.
I'm changing the look of some Controls that I use in my Microsoft Surface Application at the moment. And today I'm working on a SurfaceListBox.
I have the template for it and already changed background and borders and other stuff.
But I really cannot find where I can change the color of the rectangle that appears on the ListBoxItem when you touch the ListBox. At the moment it's just white and I want to change that.
It's not something like the effect that you can see when the item is selected. I already found that and changed that so my selected item now appears in a different color. But the effect in the second when you touch the item stays white.
So where can I change this effect?
If you mean the bright, white highlight that happens when you press your finger against an item you should look into the SurfaceShadowChrome. It's used by (almost) all surface controls to give feedback when the user is pressing on a control.
It does have a Color property that you can modify to suit your needs. Apart from the color, and the tweaking of corner radius and shadow offset, it's not a very flexible decorator. But hopefully, you'll be able to make it do what you need.
I want to have a grid of values with the headers in the left column and the databound results in the right column. When the values change, I want them to fade in. Is it possible to animate the Opacity of the right Column? Or would I have to animated the Opacity of each separate TextBlock that's in each row of the right column?
If you are talking about the standard layout Grid panel, then no, you cannot set the opacity on it.
However, the better solution is to set it on each TextBlock, anyway. That way you could provide a single style, define the opacity animation there, and then all of your TextBlocks could use that style.