Last Updated: 15 Dec 2021 14:10 by ADMIN
Created on: 08 Dec 2021 18:26
Category: Window
Type: Bug Report
The Hidden attribute on the WindowAction element does not hide the action button when it is set to true

When setting the Hidden property to true on a WindowAction, the action button is still rendered, e.g.:

<WindowAction Name="Maximize" Hidden="true"></WindowAction>

See this REPL for an example:


1 comment
Posted on: 15 Dec 2021 14:10

Hello Kevin,

The Window controls the visibility of Minimize and Maximize actions, depending on the current Window state. In other words, the Hidden setting is ignored for these two actions specifically. I agree this should be documented and changes will take effect after the next site upload. In the future, we may allow two-way binding for nested component attributes, but this is just an idea for the time being.

If you need to override the default behavior, you can use conditional rendering:

    @if (ShowMaximize)
        <WindowAction Name="Maximize" />
    <WindowAction Name="Close" />


Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!