/// <summary> /// 点击背景遮罩方法 /// </summary> public void OnContainerClick() { if (IsBackdrop) { IsOpen = false; OnClickBackdrop?.Invoke(); } }
/// <summary> /// 点击背景遮罩方法 /// </summary> public void OnContainerClick() { if (IsBackdrop) { IsOpen = false; if (IsOpenChanged.HasDelegate) { IsOpenChanged.InvokeAsync(IsOpen); } OnClickBackdrop?.Invoke(); } }
/// <summary> /// 点击背景遮罩方法 /// </summary> public async Task OnContainerClick() { if (IsBackdrop) { IsOpen = false; if (IsOpenChanged.HasDelegate) { await IsOpenChanged.InvokeAsync(IsOpen); } if (OnClickBackdrop != null) { await OnClickBackdrop.Invoke(); } } }