 <p>If you don't need it to undock and float then you can use a <a href="https://msdn.microsoft.com/en-us/library/system.windows.controls.headeredcontentcontrol%28v=vs.110%29.aspx" rel="nofollow">HeaderedContentControl</a>.</p> <p>When you want to add the close button you can template the header presenter to include a button.</p>