Last modified on 20 March 2017, at 13:37

SetActiveReferenceCommand

Revision as of 13:37, 20 March 2017 by BMA (Talk | contribs)

IC COMMAND.png Set Active Reference
Name SetActiveReferenceCommand
Purpose Set an active reference on UBIK® objects with a previously set reference id set in the ActivateReferenceByScanCommand or ActivateReferenceCommand.
Version 2.6.1+
ViewModel ContentViewModel

The SetActiveReference Command ist used to manually set references on target content. The command is to be used when the source content object is still stored in the 'command memory'. Once the command is triggered, the user can immediately set the active reference on the current UBIK® object. This object wil now reference to the source object, which the original ActivateReferenceByScan command was called from. Main purpose ist to provide an alternative way to set a reference if marker scanning failed or the referencing in general should be done manually by pressing a button on the source object and set the reference by pressing another button on the target object.

Example:

   <Button Height="38" Content="Assign" IsEnabled="{Binding CanExecuteSetActiveReferenceCommand}">
        <Interactivity:Interaction.Behaviors>
                <Core:EventTriggerBehavior EventName="Tapped">
                        <Core:InvokeCommandAction Command="{Binding SetActiveReferenceCommand}"/>
                </Core:EventTriggerBehavior>
        </Interactivity:Interaction.Behaviors>
  </Button>


See also

ActivateReferenceByScanCommand ContinueReferenceByScanCommand