You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need some help with my Blazor application. I’m working with a canvas and images, and I have a list of images that I load from a folder. My issue is that I want to change the displayed image using arrow buttons, but currently, only the first image loaded during initialization is being rendered. Could you help me improve my code? I’ll paste the UI Blazor code and a few methods below.
I believe the issue is that the imageref.Id has a single ID, and when I attempt to change the image, it doesn’t update. Could someone assist me with this? (I could provide the other methods if required)
Thank y'all
The text was updated successfully, but these errors were encountered:
I need some help with my Blazor application. I’m working with a canvas and images, and I have a list of images that I load from a folder. My issue is that I want to change the displayed image using arrow buttons, but currently, only the first image loaded during initialization is being rendered. Could you help me improve my code? I’ll paste the UI Blazor code and a few methods below.
razor.cs
razor.cs
async Task RedrawCanvas()
{
await currentCanvasContext.ClearRectAsync(0, 0, 800, 800);
}
method to change image
I believe the issue is that the imageref.Id has a single ID, and when I attempt to change the image, it doesn’t update. Could someone assist me with this? (I could provide the other methods if required)
Thank y'all
The text was updated successfully, but these errors were encountered: