void ITopLevelImpl.SetCursor(ICursorImpl cursor) { if (cursor == null) { Cursor = Cursors.Arrow; } else if (cursor is IPlatformHandle handle) { Cursor = CursorShim.FromHCursor(handle.Handle); } }
void ITopLevelImpl.SetCursor(IPlatformHandle cursor) { if (cursor == null) { Cursor = Cursors.Arrow; } else if (cursor.HandleDescriptor == "HCURSOR") { Cursor = CursorShim.FromHCursor(cursor.Handle); } }