Custom component does not have a property matching the name

Posted 194 days ago by jbyerard
0

Hello, I'm trying to create a component to use it throughout my project, but I'm encountering the following error:
Error: System.InvalidOperationException: Object of type 'EOS_BLZ.Shared.Controles.CrfTextBox' does not have a property matching the name 'valorcitoChanged'.

The page doesn't load.

I'm attaching the code for the two components.

Custom component:

@using Radzen

@code {
[Parameter] public string Text { get; set; }
[Parameter] public string Name { get; set; }
[Parameter] public int MaxLength { get; set; }
[Parameter] public string Style { get; set; }
[Parameter] public string BindValue { get; set; }
[Parameter] public string valorcito { get; set; }

 

private RadzenTextBox Txt;

}

Test Component:
@page "/test"
@using EOS_BLZ.Shared.Controles;

<CrfTextBox @ref="crfTextBox" Text="Placa" MaxLength="10" Style="height:60%" @bind-valorcito="@txtValue">

Valor del TextBox: @txtValue

@code {
private CrfTextBox crfTextBox;
private string txtValue = "hello";
}

Thx

Someone is typing...

Post a Reply

You must be logged in to add a new post.
Number of online users: 0
An error has occurred. This application may no longer respond until reloaded. Reload 🗙