Search code examples
xamlblazorblazorise

With ASP.NET Blazor and Blazorise, how do I use that to show content only on mobile?


Same question w/o an answer I like.... and since the following allows me to show the contents of Container only on desktopy env.

    <Container Display="Display.None.Block.OnFullHD">
        <AppHelpMenu />
    </Container>

How do I use that to show a Container only on mobile?

    <Container Display="Display.None.Block.Mobile">
        <AppHelpMenu />
    </Container>

That doesn't work :(


Solution

  • Should be

    <Container Display="Display.None.OnFullHD.None.OnTablet.Block.OnMobile">
        <NavHelp />
    </Container>
    

    First, you define how to show it (None), and then where to show it (OnMobile).