Changes

Login View

1,283 bytes added, 15:45, 28 February 2022
{{Hint|If available, the instance matching the current login's UID will be used to extend the available login details. It's possible to have duplicate information in the current login, e.g. LoginName available from direct web service communication as well as the same named property through RawDetails. In such a case, it's recommended to take the former over the latter.}}
[[Category== Commands == === Login related ===Three commands are available for logging in/out.* LogoutCommand;* LoginCommand;* ToggleLoginCommand:Log out if you are already logged in, log in otherwise. <tabs>LoginCommand and ToggleLoginCommand support an additional command parameter to automatically navigate to the root page after a successful login.The parameter can be both a simple boolean value, or a KeyValueList with a boolean value under the key of "NavigateToRootPageOnLogin". See examples below.<tab name="UWP"><source lang = "xml">xmlns:controls="using:UBIK.WinX|Login View]].Controls"<Button... Command="{Binding LoginCommand}"> <Button.CommandParameter> <controls:KeyValueList> <controls:KeyValueParameter Key="NavigateToRootPageOnLogin" Value="true" /> </controls:KeyValueList> </Button.CommandParameter></Button></source></tab> <tab name="Xamarin"><source lang = "xml">xmlns:classes="clr-namespace:UBIK.CPL.Classes;assembly=UBIK.CPL"<Button... Command="{Binding LoginCommand}"> <Button.CommandParameter> <classes:KeyValueList> <classes:KeyValueParameter Key="NavigateToRootPageOnLogin" Value="true" /> </classes:KeyValueList> </Button.CommandParameter></Button></source></tab></tabs> 
[[Category:Client|Login View]]
[[Category:WinX|Login View]]
[[Category:Xamarin|Login View]]