After playing around with this I found the problem -
The above code was located in
MainPage()
following
InitializeComponent()
It compiled fine, but threw the exception at runtime.
When I moved the code to the event handler used to refresh the Skiasharp canvas, it worked okay.
Since I don't want to recreate the bitmap each time the event handler runs, I have to check to see if the bitmap is null first.
Can't figure out why that should be the case, but it is what it is.
Any explanation?