I want to use the CharmFlyout control in code behind with the following code, but it is not opening the settings page
SettingsCommand MyAccount = new SettingsCommand("MyAccount", "My Account", (handler) =>
CharmFlyout _charmFlyout = new CharmFlyout();
_charmFlyout.Content = new MyAccountPage();
_charmFlyout.IsOpen = true;
Clicking on "My Account" in settings charm just dismisses the settings charm, Do I need to include anything more?