Updated UserControlFlyout.cs to add new code from Flyout.cs