You can now specify which of the four border edges you would like to be used for any of the Krypton controls that support drawing a border.

The new property is called DrawBorders and is an enumeration so you can specify any combination of the four border edges. Here is a picture with all the different options applied for a KryptonButton.

As the new property is exposed as an appearance value inside the existing states if means you can define a different value per state. So you might have no borders showing until the user hot tracks over the button and then decide to show just the Top and Left borders. This opens up more variations for your custom palettes.

It is not just the button control that has a border. Here are some quick, and not very exciting, examples of customing the border for KryptonHeader, KryptonHeaderGroup and KryptonNavigator controls.

Leave a Reply