background image in blazor

Thank you bruce for providing this information. Define a javascript function in your index.html <script> function updateBackground (srcImage) { document.getElementsByTagName ("body") [0].style = "background-image etc } </script> Hello all, does someone know how to place an Image on an RadzenButton like in the Blazor Demo? Consider the following image, here the StaticFilesFolder/Image is created outside the wwwroot folder. Blazor layout component as mvc razor page layout. Sorry, this post was deleted by the person who originally posted it. Where does this (supposedly) Gibson quote come from? Blazorise is not stopping you from using regular html or css. Reddit and its partners use cookies and similar technologies to provide you with a better experience. or ?? If you want the background image to cover the entire element, you Cookie Notice The preceding example uses a C# field to hold the image's source data, but you can also use a C# property to hold the data. Blazor : How to pass ViewModel from Child Component to Parent Component and vice versa, How to implement pre-rendering in Blazor WASM, I want to call blazor component dynamically on button click, Blazor [Parameter] not updating input variables, Using JSRuntime.InvokeAsync causes "Index was out of range" error on BlazorStrap Carousel, Asp.Net Hosted Blazor + Azure AD authentication, Blazor Server Side - Frequent 504 errors in AWS environment, Changing the default tab in the TelerikTabStrip, Blazor Input File Component (physical path), Blazor iframe not working with Internet Explorer 11, How to require authentication in ASP.NET Core 5 Blazor Server Mode with redirect to login, How to use google font for Blazor on Index.razor page. using (Image img = new Image(500, 500)) Every Blazor Card can have a dedicated area to render a card image that will fill the size of the card. check the path it was configured with. You can easily create an Image File Manager in Blazor when using the free Radzen Blazor Components. section: Specify the background image in the