Categories
SkiaSharp Web Development

SkiaSharp Tutorial: Easily Draw Shapes, Text, and Images in .NET

Intro

According to Microsoft, “SkiaSharp is a 2D graphics system for .NET and C# powered by the open-source Skia graphics engine that is used extensively in Google products. You can use SkiaSharp in your applications to draw 2D vector graphics, bitmaps, and text.” If you’re like me, you like to start complicated topics as simply as possible and build from there. SkiaSharp is extremely powerful, and some concepts can be complex, but it’s definitely possible to start out simply and build on your base of knowledge. I’d like to do that here.

Categories
Web Development

Allow HTML in MVC’s Html.ValidationMessageFor or Html.ValidationSummary

Have you ever wanted to put HTML in the validation message for a property or in the validation summary? You can’t do this out of the box, since any message that gets run through either of these methods gets put into the element’s InnerText. But thankfully, we can create simple extensions to allow HTML in both of these validation methods.