Modifying Panel to interop with minerva visual tree.