public MenuFlyout()
{
InitializeComponent();
if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(new DependencyObject())) {
ProfileSettings.ItemsSource = new List<object>() { new object() };
RenderOptions.SetBitmapScalingMode(this, BitmapScalingMode.HighQuality);
ProfileManager.ProfileChanged += ReloadCurrentProfile;
ProfileManager.ProfileLocked += OnProfileLocked;
ProfileManager.CollectionChanged += ReloadProfiles;
ReloadProfiles(this, BaseEventArgs.Empty);
WindowManager WM = WindowManager as WindowManager;
var values = WM.MenuItems.GetLinkedProxy<SDK.Model.MenuItem, MenuItemViewModel>(LanguageManager);
CommandList.ItemsSource = values;
}
}