在 Blazor 中找不到类型或命名空间名称 'UIFocusEventArgs' & 'LocalDate'
The type or namespace name 'UIFocusEventArgs' & 'LocalDate' could not be found in Blazor
根据我的 Blazor 服务器端应用程序中的 Nodatimepicker documentation, I'm trying to add a Datepicker named Nodatimepicker。
void focussed(UIFocusEventArgs e)
{
visible = true;
}
void selected(LocalDate localDate)
{
visible = false;
StateHasChanged();
}
但是我遇到了以下错误......
The type or namespace name 'UIFocusEventArgs' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'LocalDate' could not be found (are you missing a using directive or an assembly reference?)
提前致谢...
您应该使用 FocusEventArgs 而不是已过时的 UIFocusEventArgs
为 LocalDate 添加以下 using 指令:
using NodaTime;
using System;
根据我的 Blazor 服务器端应用程序中的 Nodatimepicker documentation, I'm trying to add a Datepicker named Nodatimepicker。
void focussed(UIFocusEventArgs e)
{
visible = true;
}
void selected(LocalDate localDate)
{
visible = false;
StateHasChanged();
}
但是我遇到了以下错误......
The type or namespace name 'UIFocusEventArgs' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'LocalDate' could not be found (are you missing a using directive or an assembly reference?)
提前致谢...
您应该使用 FocusEventArgs 而不是已过时的 UIFocusEventArgs
为 LocalDate 添加以下 using 指令:
using NodaTime;
using System;