An image says more ;-). I would like to have a custom image and make it larger. (for the Column Chooser Icon).
Is this possible?
Maybe with a creationfilter? Or setting a property?
Can you provide me with an example?
Kind regards, Lieven Cardoen
Found it. Thx.
Hi Mike, is there also a way to enlarge the arrow in the Row Header? (the small arrow)
Thx, Lieven
Thx, will try this immediately. And is there a way, related to my other question, to use the same CreationFilter to have space before the Column Header Text?
See https://es.infragistics.com/community/forums/p/111191/521654.aspx#521654
Thx, Lieven Cardoen
Hi Lieven,
The reason that the image does not appear larger is because the default image we provide is already at full size. There are two ways you can resolve this:
1) Provide a larger image. The larger image will use up more of the space. You can set the image like this:
ultraGrid1.DisplayLayout.Override.RowSelectorHeaderAppearance.Image = new Bitmap(@"../../Image.jpg");
2) Enable scaling on the UI element. You can turn scaling on by adding a line to the creation filter in AfterCreateChildElements after we get the ImageAndTextDependentImageUIElement:
(imageElement as ImageAndTextDependentImageUIElement).Scaled = true;
I do not recommend this approach if you plan to use the provided image, as the default image is small and may not look good scaled up.
I've attached a sample that demonstrates these approaches. One approach or the other should be sufficient, but both won't hurt anything.
Hi Mike,
Any update on this?
Can I use the same CreationFilter to add space before the Column Header Text?