SharingPanel

Is it possible to call the SharingPanel from the Toolbar event?
I can use the following line to successfully share from a button control

SharingPanel1.SharePicture(pic.image, self, me)

but not from a toolbar button which seems odd as I am assuming that is the natural place to call from