If it's in a burger bun, it's a burger. If it's in two slices of bread, it's a sandwich.
If you put sliced ham in a burger bun, it is not a ham burger.
It all depends on the style of the innard. Technically ground, really though, anything that looks burgery counts as a burger. But peanut butter and jam in a burger bun is still a peanut butter and jam sandwich.