How do you make a panel with curved corners with a different colour interior to the background colour
I have only found the borderstyle property, but the outside corners are left the interior colour which kind of spoils the effect
I have found an example in the AppSylist application that does what I want (see attached graphic)
can you let me know how this was achieved?
Thanks
Hi Lance,
Your certainly welcome. The UIElementViewer is an Infragistics tool used to view the UIElements that make up Infragistics controls, including their nested hierarchy and other details such as dimensions, position and its associated properties.
I have included the UIElementViewer assembly as an attachment, for reference.
To use the UIElementViewer, you will need to first include the assembly reference in your project, then you will be able to create an instance as you would any other .NET object and then call its show method().
Example,Using Infragistics.Win.UIElementViewer;…UIElementViewerDialog viewer = new UIElementViewerDialog();viewer.Show();
The UIElementViewer is particularly useful when you need to determine exactly a type of element being used for some aspect of your project; its use in invaluable when developing approaches which include Draw and Creation Filters.
I have also included the following link as an in depth reference to Draw and Creation Filters as well as a useful introduction to the UIElementViewer.
Note: The following website is not supported or maintained by Infragistics, but I believe you will find the information provided there useful.http://billb.name/it/gridFilters.asp
As far as modifying the shape and color of the UltraButton, applying a custom shape via the ShapeImage property is the way to go; however, if you intend to modify the color of the tool, you will first need to set its UseOsThemes property to false; otherwise, the current OS themes will override any changes to the tools appearance that you are setting both in code and via the designer.
If you have any further questions, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
Thanks Chris
I got a similar effect by using an UltraPanel with a VisualBasicPowerPacks RectangleShape with the CornerRaduis set.
The RectangleShape has no dock functionality, so I had to anchor the edges to the panel edges to get it to resize correctly
What is the ElementViewer? How do I run the ElementViewer?
Also... how do I make an UltraButton be anything other than light grey/medium grey without using a Style
Can we make its corners more rounded? I tried using a ShapeImage, but the results are a bit random and lumpy
Hi Larry,
I took a look at the AppStylistRuntime elements with the ElementViewer and it turns out that the panel in your screen shot is actually an UltraGroupBox.
Going a bit further I discovered that the GroupBox used in the AppStylist interface actually implements an image for its background; while I could not obtain the exact image, I was able to replicate the approximate behavior wherein the edges of the rounded image are blended with the background of its container control.
To do this, I edited a test image with Microsoft Paint, using the beveled rectangle tool set to the thickest width which I set to white, (any color could potentially be used). I then trimmed off the excess around this new border, saved the image and imported it into my sample.
I then set this image as the background image of the UltraGroupBox and set the background color of the container, (in this case the form itself) to white, in order to blend in with the image border.
I have attached the sample along with the test image for reference.
If you have any further questions at all regarding this approach, please let me know.