예제 #1
0
        /// <summary>
        /// Shared code to dispose of any internal resources.
        /// </summary>
        protected virtual void ReleaseResources()
        {
            if (ParentValidation != null)
            {
                // To avoid leaking memory, it's important to detach any event handlers in Dispose()
                ParentValidation.ValidationStatusChanged -= OnValidationStatusChanged;
            }

            ParentModal?.NotifyFocusableComponentRemoved(this);

            if (Theme != null)
            {
                Theme.Changed -= OnThemeChanged;
            }
        }
예제 #2
0
        /// <inheritdoc/>
        protected override void OnInitialized()
        {
            base.OnInitialized();

            ParentModal.NotifyCloseActivatorIdInitialized(ElementId);
        }
예제 #3
0
        public Task Close(CloseReason closeReason)
        {
            ParentModal?.Hide(closeReason);

            return(Task.CompletedTask);
        }