Tech Off Post

Single Post Permalink

View Thread: I always get a black backgraound with DrawingContext in WPF
  • User profile image
    Dexter

    The background is not magical, it is drawn by the window. If you replace the visual content of the windows like this, there will be no background unless you draw it yourself.

    You could add something like this

    dc.DrawRectangle(Background, Nothing, New Rect(0, 0, Width, Height))

    do your drawing code.