From 4b3722d422eb703bffc65362473dc68a11130828 Mon Sep 17 00:00:00 2001 From: Adrien Clerbois <50712277+AClerbois@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:43:35 +0200 Subject: [PATCH 1/3] Fixing typo on the readme.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8dd1003c8..55ad1f400 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ To make it easier to start a project that uses the Fluent UI Blazor components o [Microsoft.Fast.Templates.FluentUI](https://www.nuget.org/packages/Microsoft.Fast.Templates.FluentUI/) template package. The package contains templates for creating Blazor Server and/or Blazor WebAssembly apps that mimic the regular Blazor -templates. The library is already set up (and all the Bootstrap styling removed). All components fromthe regular template have been +templates. The library is already set up (and all the Bootstrap styling removed). All components from the regular template have been replaced with Fluent UI Blazor counterparts (and a few extra have been added). Please see the [documentation page](https://www.fluentui-blazor.net/Templates) for more information. @@ -125,7 +125,7 @@ maintaining accessibility. This is accomplished through setting various "design ## Blazor Hybrid You can use this library in Blazor Hybrid (MAUI/WPF/Windows Forms) projects. Setup is almost the same as described in the "Getting started" section above, but to get everything to work you'll need to take some extra steps (for now): -1. You need to make some changes in your `{Type}Program.cs` file +1. You need to make some changes in your `{Type}Program.cs` file. Make sure the following is added before the `return builder.Build()` line: ```csharp builder.Services.AddFluentUIComponents(options => From 90648db7aa0e971714bb88034442c93565095d63 Mon Sep 17 00:00:00 2001 From: Adrien Clerbois <50712277+AClerbois@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:52:24 +0200 Subject: [PATCH 2/3] Fixing typos. --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 55ad1f400..533a5c86c 100644 --- a/README.md +++ b/README.md @@ -136,9 +136,7 @@ builder.Services.AddFluentUIComponents(options => ### Tempory workaround for MAUI/WPF/Windows Forms issues Currently when using the WebView to run Blazor (so all Hybrid variants) the web-components script is not imported automatically (see [#404](https://github.com/microsoft/fluentui-blazor/issues/404). -There is also an isue with loading the custom event handlers that are being configured by the web-components script. Until these are fixed on the WebView side, there is -a workaround available, namely to intercept '_framework/blazor.modules.json' and provide proper JS initializers file (created by build). The needed `initializersLoader.webview.js` has -been added to the library and needs to be included with a script tag **before** the `_framework/blazor.webview.js` script tag: +There is also an issue with loading the custom event handlers that are being configured by the web-components script. Until these are fixed on the WebView side, there is a workaround available, namely to intercept `'_framework/blazor.modules.json'` and provide proper JS initializers file (created by build). The needed `initializersLoader.webview.js` has been added to the library and needs to be included with a script tag **before** the `_framework/blazor.webview.js` script tag: ```xml @@ -151,8 +149,7 @@ initializersLoader replaces standard `fetch` function with one which provides th For more information regarding the bug, see issue [15234](https://github.com/dotnet/maui/issues/15234) in the MAUI repo. ## Use the DataGrid component with EF Core -If you want to use the `` with data provided through EF Core, you need to install -an additional package so the grid knows how to resolve queries asynchronously for efficiency. . +If you want to use the `` with data provided through EF Core, you need to install an additional package so the grid knows how to resolve queries asynchronously for efficiency. . ### Installation Install the package by running the command: @@ -161,7 +158,7 @@ dotnet add package Microsoft.Fast.Components.FluentUI.DataGrid.EntityFrameworkAd ``` ### Usage -In your Program.cs file you need to add the following after the `builder.Services.AddFluentUIComponents(...);` lines: +In your `Program.cs` file, you need to add the following after the `builder.Services.AddFluentUIComponents(...);` lines: ```csharp builder.Services.AddDataGridEntityFrameworkAdapter(); ``` From 964feef4d8ac75e615dfd19cfcbd1c6206812508 Mon Sep 17 00:00:00 2001 From: Adrien Clerbois <50712277+AClerbois@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:54:28 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 533a5c86c..d6317aab8 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ builder.Services.AddFluentUIComponents(options => }); ``` -### Tempory workaround for MAUI/WPF/Windows Forms issues +### Temporary workaround for MAUI/WPF/Windows Forms issues Currently when using the WebView to run Blazor (so all Hybrid variants) the web-components script is not imported automatically (see [#404](https://github.com/microsoft/fluentui-blazor/issues/404). There is also an issue with loading the custom event handlers that are being configured by the web-components script. Until these are fixed on the WebView side, there is a workaround available, namely to intercept `'_framework/blazor.modules.json'` and provide proper JS initializers file (created by build). The needed `initializersLoader.webview.js` has been added to the library and needs to be included with a script tag **before** the `_framework/blazor.webview.js` script tag: