Use the custom <MyPanel> for reusability and cleaner code in multiple places, and the pure XAML approach for quick, simple, one-off layouts.
<MyPanel>