Declined
Last Updated: 15 Dec 2021 14:10 by ADMIN
Kevin
Created on: 08 Dec 2021 18:26
Category: Window
Type: Bug Report
0
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:
https://blazorrepl.telerik.com/wPbGYMvi23qjUo1c41

 

  
1 comment
ADMIN
Dimo
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:

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

 

Regards,
Dimo
Progress Telerik

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