windows runtime - WinRT 8.1 Settings Charm using Caliburn.Micro: how to remove a command from settings? -


I have encountered the problem of deleting the command from the settings command. The problem is that the user has to sign out command only then You should see when it is logged into the app but not on the login screen.

For now, I have not found any suitable method for removing or declaring an order. Add all except the complete list of commands and the sign out command.

Caliburn.Micro is used to manage settings with commands.

  Private WinRTContainer _container; ........ Private Zero RegistrationsTatings Commands (Bull Sign Signin) {#if WINDOWS_APP var settings = _container.RegisterSettingsService (); If (! Signinine's) {settings.RegisterCommand (New Component: Action Settings Commands ("Settings", () => ({}}); Settings.RegisterCommand (New Component Action Settings Command ("Contact us about a problem", () => ({}}); Settings.RegisterCommand (New Component Action Setting Commands ("Help Information", () => ({}}); Settings.RegisterCommand (New Components: Action Settings Command ("Tutorial", () => ({}}); Settings.RegisterCommand (New Component Action Settings Command ("Submit Product Feedback", () = & gt; {})); Settings.RegisterFlyoutCommand & LT; AboutViewModel & gt; ( "about"); } Other {settings.RegisterCommand (New Component. Action Settings Command ("Sign Out", Handle Signature Commands); } #endif}   

So, to get the conclusion, I need the following logic:

- When a user is on the login screen, they will not be signed out. Gives command;

- When the user logs in to the sign out command,

- When the user logs out, the command should be removed from the settings command.

This is not possible in CM 2.0.0 yet.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -