And this is already integrated: https://github.com/MahApps/MahApps.Metro/blob/master/MahApps.Metro/Controls/Flyout.cs#L56