Ticket T1004187
Visible to All Users

XAF Blazor - How to change a default SizeMode Switcher Option to Large or Compact

created 4 years ago

Hi.

We have the Blazor SizeMode Switcher options available to Standard or Compact. However, SizeMode can be Small, Medium and Large. I would say that Small is the Compact and Medium is the Standard. Is it possible to show the Large as an option too?

Thanks in advance.

Ivan

Answers

created 4 years ago (modified 5 months ago)

Hello Ivan,

You can customize only the captions of the Size Mode Switcher's items. In Large mode, elements are too large and the layout doesn't look good enough. Moreover, the majority of layouts have a lot of elements, and Large mode is not suitable for them. It was decided not to show the "Large" option in the dropdown. We will consider how to improve this functionality in the future.

Currently, you can set Large size mode manually in Startup.cs (to set Compact mode - use SizeMode.Small instead):

C#
public class Startup { // ... public void ConfigureServices(IServiceCollection services) { // ... services.AddXaf<MainDemoBlazorApplication>(Configuration); services.Configure<GlobalOptions>(options => options.SizeMode = SizeMode.Large); // ... } }

For more information about XAF's appearance: Blazor Application Appearance.

Thanks.
Arkady

    Comments (2)

      Hi Arkady.

      Thanks for the prompt reply.
      Got the idea.
      Thank you.

        By the way, I have just tested the SizeMode.Large option and it didn't look that bad.
        I've always had some users asking me to make their screen objects bigger, and I think that letting them choose the Large option would be nice.
        Please, consider having it in the SizeMode Switcher, and maybe letting us choose which options would be allowed.

        Cheers.

        Ivan

        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.