Made Flyout.cs compatible with the theme XAML