Click or drag to resize
KaxInputControlHoveredStyle Property
Gets the style properties for hovered KaxInput control.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public InputStyle HoveredStyle { get; }

Property Value

Type: InputStyle
A Kettic.AspNetControls.TextBoxStyle object that represents the style properties for hovered KaxInput control. The default value is an empty TextBoxStyle object.
Remarks

Use this property to provide a custom style for the hovered KaxInput control. Common style attributes that can be adjusted include foreground color, background color, font, and alignment within the KaxInput. Providing a different style enhances the appearance of the KaxInput control.

Hovered style properties in the KaxInput control are inherited from one style property to another through a hierarchy. For example, if you specify a red font for the EnabledStyle property, all other style properties in the KaxInput control will also have a red font. This allows you to provide a common appearance for the control by setting a single style property. You can override the inherited style settings for an item style property that is higher in the hierarchy by setting its style properties. For example, you can specify a blue font for the HoveredStyle property, overriding the red font specified in the EnabledStyle property.

To specify a custom style, place the <HoveredStyle> tags between the opening and closing tags of the KaxInput control. You can then list the style attributes within the opening <HoveredStyle> tag.

Examples

The following code example demonstrates how to set HoveredStyle property:

            </%@ Page Language="C#" /%>     
</%@ Register Assembly="KaxInput.Net2" Namespace="Kettic.AspNetControls" TagPrefix="kaxI" /%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<kaxI:KaxTextBox EmptyMessage="EmptyMessage" ID="KaxNumericTextBox1" runat="server">
<EnabledStyle BackColor="red" />
<EmptyMessageStyle BackColor="AliceBlue" />
<FocusedStyle BackColor="yellow" />
<HoveredStyle BackColor="blue" />
</kaxI:KaxTextBox>
</form>
</body>
</html>
See Also