Jump to: navigation, search

Difference between revisions of "SetActiveReferenceCommand"


(Created page with "{{CommandInfoBox | title = Set Active Reference | name = {{PAGENAMEE}} | purpose = Set an active reference on {{UBIK}} objects with a previously set reference id set in the ...")
 
(See also)
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
}}
 
}}
 
   
 
   
The SetActiveReference Command ist used to continue setting references on target content. The command can 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.
+
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:
 
Example:
 
<source lang = "xml">
 
<source lang = "xml">
    <Button Height="38" Content="Continue" IsEnabled="{Binding CanExecuteContinueReferenceByScanCommand}">
+
  <Button Height="38" Content="Assign" IsEnabled="{Binding CanExecuteSetActiveReferenceCommand}">
 
<Interactivity:Interaction.Behaviors>
 
<Interactivity:Interaction.Behaviors>
 
<Core:EventTriggerBehavior EventName="Tapped">
 
<Core:EventTriggerBehavior EventName="Tapped">
<Core:InvokeCommandAction Command="{Binding ContinueReferenceByScanCommand}"/>
+
<Core:InvokeCommandAction Command="{Binding SetActiveReferenceCommand}"/>
 
</Core:EventTriggerBehavior>
 
</Core:EventTriggerBehavior>
 
</Interactivity:Interaction.Behaviors>
 
</Interactivity:Interaction.Behaviors>
    </Button>
+
  </Button>
 
</source>
 
</source>
  
Line 23: Line 23:
  
 
== See also ==
 
== See also ==
[[ActivateReferenceByScanCommand]]
+
[[ActivateReferenceByScanCommand]]<br>
 
[[ContinueReferenceByScanCommand]]
 
[[ContinueReferenceByScanCommand]]
  
 
{{Category/Version|2.6.1}}
 
{{Category/Version|2.6.1}}
 +
 +
[[Category:2.6.1|SetActiveReferenceCommand]]

Latest revision as of 13:38, 20 March 2017

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