Ejemplo n.º 1
0
        protected override Task OnInternalValueChanged(TValue value)
        {
            // notify child radios they need to update their states
            RadioCheckedChanged.Invoke(this, new RadioCheckedChangedEventArgs <TValue>(value));

            return(CheckedValueChanged.InvokeAsync(value));
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        protected override void OnValidationStatusChanged(object sender, ValidationStatusChangedEventArgs eventArgs)
        {
            base.OnValidationStatusChanged(sender, eventArgs);

            // Since radios validation works little different when placed in radio group we need
            // to notify them to re-render when validation changes.
            RadioCheckedChanged?.Invoke(this, new(CheckedValue) );
        }
Ejemplo n.º 3
0
        /// <inheritdoc/>
        protected override async Task OnInternalValueChanged(TValue value)
        {
            // notify child radios they need to update their states
            RadioCheckedChanged?.Invoke(this, new RadioCheckedChangedEventArgs <TValue>(value));

            if (!skipCheckedValueChangedCallback)
            {
                await CheckedValueChanged.InvokeAsync(value);
            }
        }