Back to Devexpress

DxFlyout.StopOutsideClickPropagation Property

blazor-devexpress-dot-blazor-dot-dxflyout-fc98bdaa.md

latest1.6 KB
Original Source

DxFlyout.StopOutsideClickPropagation Property

Specifies whether the control halts an outer click propagation.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool StopOutsideClickPropagation { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to stop outer click propagation; otherwise, false.

|

Remarks

When a user clicks outside a flyout window, the control closes the window and prevents further propagation of the click event. Set the StopOutsideClickPropagation property to false to processes subsequent events (for instance, a button click) after the window is closed.

razor
<DxButton Id="show-flyout" Click="() => IsOpen = !IsOpen">Show a flyout window</DxButton>
<DxFlyout @bind-IsOpen="@IsOpen" 
          Width="210"
          BodyText="Lorem ipsum dolor sit amet"
          PositionTarget="#show-flyout"
          StopOutsideClickPropagation="false">
</DxFlyout>

@code {
    bool IsOpen { get; set; } = false;
}

If the CloseOnOutsideClick property is set to false, the StopOutsideClickPropagation property has no effect.

See Also

DxFlyout Class

DxFlyout Members

DevExpress.Blazor Namespace