DxPopup.VisibleChanged Event
Fires when a pop-up window’s visibility is changed.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v20.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public EventCallback<bool> VisibleChanged { get; set; }
Parameters
Type | Description |
---|---|
Boolean | A new value of the Visible property. |
Remarks
Handle the VisibleChanged event to respond to the Visible property change.
<div class="target-container" @onclick="@(() => PopupVisible = true)"></div>
<DxPopup HeaderText="Header"
Visible="@PopupVisible"
VisibleChanged="@((value) => OnVisibleChanged(value))">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sit amet metus vel nisi blandit tincidunt vel efficitur purus.
Nunc nec turpis tempus, accumsan orci auctor, imperdiet mauris. Fusce id purus magna.</p>
</DxPopup>
@code {
bool PopupVisible { get; set; } = false;
void OnVisibleChanged(bool value) {
PopupVisible = value;
// ...
}
}
See Also