Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,13 @@ private protected override bool OwnerDraw
get
{
if (Application.IsDarkModeEnabled

// The SystemRenderer cannot render images. So, we flip to our
// own DarkMode renderer, if we need to render images, except if...
&& Image is null
// ...or a BackgroundImage, except if...
&& BackgroundImage is null
// Delay BackgroundImage check until handle is created to avoid early null misjudgment
&& IsHandleCreated
// ...the user wants to opt out of implicit DarkMode rendering.
&& DarkModeRequestState is true

Expand Down