Dear Support
How i can change background color of actions? I tried this solution: How to change the color of an action in XAF Blazor
But it doesn't work for me.
Another question, is it possible to change the background color of the detail view?
I'm attaching a sample project where I tried to change colors.
DXApplication2.Module.Blazor
-> CustomizeActionsViewController.cs
Hello Twilk,
I can see that XAF overrides the CssClass property in the DxToolbarItemSimpleActionControl class when it changes the action's Enabled state:
protected override void SetEnabled(bool enabled) { base.SetEnabled(enabled); ToolbarItemModel.CssClass = enabled ? "xaf-action" : null; }
So, this solution won't work in the current version. I asked our developers to review this issue. As a workaround, you can use a selector with the data-action-name attribute, as shown in the following ticket: How to change the style of buttons created by XAF's default actions?. Note that this attribute contains an action's Caption rather than its Id.