LayoutItemStyle.NestedControl Property
In This Article
Specifies a style for all layout item’s nested editors.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public NestedControlStyle NestedControl { get; }
#Property Value
Type | Description |
---|---|
Nested |
An object that provides style settings. |
#Remarks
Use the NestedControl property to style all the layout item’s nested editors.
Web Forms:
<dx:ASPxFormLayout runat="server" ... >
<Styles>
<LayoutItem>
<NestedControl>
<DisabledStyle ForeColor="Black" />
</NestedControl>
</LayoutItem>
</Styles>
...
</dx:ASPxFormLayout>
MVC:
@Html.DevExpress().FormLayout(settings => {
...
settings.Styles.LayoutItem.NestedControl.DisabledStyle.ForeColor = Color.Red;
...
}).GetHtml()
See Also