Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some controls don't work in BlazorWebView on Windows #1193

Closed
epetersoni opened this issue Apr 19, 2023 · 0 comments · Fixed by #1216
Closed

Some controls don't work in BlazorWebView on Windows #1193

epetersoni opened this issue Apr 19, 2023 · 0 comments · Fixed by #1216
Labels
bug Something isn't working

Comments

@epetersoni
Copy link
Contributor

🐛 Bug Report

Controls such as the table don't work within a Windows BlazorWebView control.

💻 Repro or Code Sample

Follow these steps to set up a Blazor Hybrid WPF app using a BlazorWebView.
Setup the required references to use Nimble with Blazor.
Add a NimbleTable to the Counter.razor file created during the previous steps.

🤔 Expected Behavior

When running the app, the NimbleTable should render.

😯 Current Behavior

The app crashes when rendering the NimbleTable because the setData JS function is not found.

💁 Possible Solution

Nimble uses JavaScript Initializers to do some set up for Blazor. Based on this aspnetcore issue those files currently do not even get loaded by the BlazorWebView.

The initializer is where functions like setData get registered, so this explains why the JS function that the table needs is not found.

This fluentui-blazor issue indicates that FAST or FluentUI controls also may use initializers, so there are likely to be other issues with controls in a BlazorWebView.

🔦 Context

We'd like to be able to use Nimble controls within existing .NET 6-based Desktop apps.

🌍 Your Environment

  • Windows 10.
  • WPF app using .NET 7.
@epetersoni epetersoni added bug Something isn't working triage New issue that needs to be reviewed labels Apr 19, 2023
@m-akinc m-akinc added blocked Blocked on a third-party issue and removed triage New issue that needs to be reviewed blocked Blocked on a third-party issue labels Apr 25, 2023
@atmgrifter00 atmgrifter00 linked a pull request May 1, 2023 that will close this issue
1 task
atmgrifter00 added a commit that referenced this issue May 2, 2023
# Pull Request

## 🤨 Rationale

- #1193
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants