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 to print some components from my app. When I read about JS interop I thought that's going to be easy. However printing like that seems to strip some (not all) of the applications styles - currently colors and icons.
I'm using MudBlazor components, so I dug in how they are doing their CSS and I found that they have defined placeholders in their CSS that are then dynamically replaced using C# and I thought maybe that's why it ends up missing half the styles. So using several tools I transformed my Blazor component to an HTML string with in-line styles that produce the same result in web-based HTML evaluators. However the Print result is still lacking any colors/icons. Why could that be?
Are there other ways to print MAUI Blazor components?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to print some components from my app. When I read about JS interop I thought that's going to be easy. However printing like that seems to strip some (not all) of the applications styles - currently colors and icons.
I'm using MudBlazor components, so I dug in how they are doing their CSS and I found that they have defined placeholders in their CSS that are then dynamically replaced using C# and I thought maybe that's why it ends up missing half the styles. So using several tools I transformed my Blazor component to an HTML string with in-line styles that produce the same result in web-based HTML evaluators. However the Print result is still lacking any colors/icons. Why could that be?
Are there other ways to print MAUI Blazor components?
Beta Was this translation helpful? Give feedback.
All reactions