Bits and Pieces

HomeBadges

Quick Helper For Blazor Performance

Oct 13, 20202 min read

How do you check your renders? Here's my method Create a base class that inherits ComponentBase, override ShouldRender and OnAfterRender to start and stop the Stopwatch, and keep track of how many renders there have been. public class PerfTestBase : ...

Dependency Injected Blazor App

Oct 8, 20203 min read

Blazor Does Not Support Constructor Injection Or does it? Code - gimme code The v5.0.0-preview.8.20414.8 release included a nice refactor commit from Mladen Macanović that introduced the IComponentActivator interface (along with a default implement...

Blazor and Media events - Hard to handle?

Aug 14, 20204 min read

Preface I saw some chat recently on the Blazor Gitter Channel asking about binding to events on the html5 video tag. It seems this person was not alone - others had similar problems - the events you subscribe to in Blazor are just not firing. I de...

Work in Progress

Jul 29, 20202 min read

Work In Progress - Video component for Blazor I am currently working on a Blazor Video component. Media Events do not bubble in general, and Blazor doesn't capture them. This control will enable you to use events such as onplay, onpause, ontimeupdate...

© 2021 Bits and Pieces

PrivacyTerms
Proudly part of