Hello,
I'm playing with the EAP build and I'm experimenting with actions in mobile view.
Now I would like to set a default theme for the application and remove the theme chooser.
What is the recomended way to do it?
Thanks
Reinhold
We have closed this ticket because another page addresses its subject:
XAF Blazor - How to change a default SizeMode Switcher Option to Large or CompactHello,
I'm playing with the EAP build and I'm experimenting with actions in mobile view.
Now I would like to set a default theme for the application and remove the theme chooser.
What is the recomended way to do it?
Thanks
Reinhold
Hi Reinhold,
You can set the Default theme and limit the number of available themes in the DevExpress
section in the appsettings.json
file of your XAF Blazor application. If you leave only one theme, the Theme Chooser will be hidden. For example:
JSON"DevExpress": {
"ExpressApp": {
"ThemeSwitcher": {
"DefaultItemName": "Office White",
"ShowSizeModeSwitcher": true,
"Groups": [
{
"Caption": "DevExpress Themes",
"Items": [
{
"Caption": "Office White",
"Url": "css/themes/office white/bootstrap.min.css",
"Color": "#fe7109"
}
]
}
]
}
}
}
Hi!
And how can I set the "Size Mode" to "Compact" in the appsettings.json?
So, I want the application to use the compact mode as default.
I can't find a setting for this in the documentation (ASP.NET Core Blazor Application Appearance | eXpressApp Framework | DevExpress Documentation).
Best regards,
Christian
Hello Christian,
You can use the GlobalOptions class, as described in our Blazor documentation: GlobalOptions.SizeMode Property.
Please let me know if need further assistance.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.