Comments (5)
Ok, the issue is that you have not specified an Intent
of the MessageBar in the options.
It will go through this code
return Content.Intent switch
{
MessageIntent.Info => new CoreIcons.Filled.Size20.Info(),
MessageIntent.Warning => new CoreIcons.Filled.Size20.Warning(),
MessageIntent.Error => new CoreIcons.Filled.Size20.DismissCircle(),
MessageIntent.Success => new CoreIcons.Filled.Size20.CheckmarkCircle(),
_ => null,
};
In your case it returns null and that is what gives you the error.
So 'workaround' is for now to supply an Intent
(of type Messageintent
) in the options.
I'll implement a default (MessageIntent.Info
) for this for the next trelease.
from fluentui-blazor.
Did you add the icons package as per https://www.fluentui-blazor.net/IconsAndEmoji?
dotnet add package FluentUI.AspNetCore.Components.Icons
from fluentui-blazor.
Is this happening in a published application? If so, it is probably the trimmer being to aggressive. Try with adding to your project file:
<ItemGroup> <TrimmerRootAssembly Include="Microsoft.FluentUI.AspNetCore.Components" /> </ItemGroup>
from fluentui-blazor.
I could reproduce in a minimal application:
- dotnet new fluentblazorwasm -n FluentBlazorTest
- replace the
Home.razor
with the snippet of my first message - run the app in debug mode
Did you add the icons package as per https://www.fluentui-blazor.net/IconsAndEmoji?
I confirm that this package is included in the template
Is this happening in a published application?
and that I've not published the app but just ran it from my IDE.
from fluentui-blazor.
Ok, with these settings your home page is using SSR. Maybe that is it. Never mind, it's wasm...
Will take a look later
from fluentui-blazor.
Related Issues (20)
- Recursive Focus Handling Causes 'Maximum Call Stack Size Exceeded' Error When Opening Nested Dialogs HOT 1
- DataGrid: Bug - Incorrect DataSource Change Detection in Grid Component Due to Boxing HOT 2
- feat: add AutoComplete property to/in NumberField HOT 1
- fix: ResetColumnWidths in FluentDataGrid
- fix: additional attributes not added to fluentautocomplete HOT 1
- FluentNavMenu with accent color background HOT 2
- fix: path to reboot.css when html/head/base is set in App.razor HOT 1
- ItemProvider with Pagination HOT 3
- rfc: input field in DataGrid HOT 2
- FluentDataGrid Enhancement: Lock First Column True/False HOT 1
- FluentDataGrid Enhancement: Drag and drop column reordering HOT 2
- Search Function: option to search all returned fields in a DataGrid HOT 3
- FluentDataGrid Enhancement: Lock First Column True/False HOT 2
- fix: Selected tab in FluentTabs is visually inconsistent HOT 1
- feat: add HiddenWhen property to FluentDataGrid columns for on small screens HOT 3
- fix: anchored HorizontalPosition in FluentMenu does not always work inside a splitter panel HOT 4
- Larger close button in fluent dialog header template HOT 1
- fix:[a11y sev2] OnRowClick is not triggered on keyboard enter in DataGrid
- fix: Dialog.Hide() doesn't hide in DialogService/FluentDialog HOT 5
- Change FluentButton background HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentui-blazor.