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 ...") |
|||
Line 7: | Line 7: | ||
}} | }} | ||
− | The SetActiveReference Command ist used to | + | 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="Assign" IsEnabled="{Binding CanExecuteSetActiveReferenceCommand}"> | |
<Interactivity:Interaction.Behaviors> | <Interactivity:Interaction.Behaviors> | ||
<Core:EventTriggerBehavior EventName="Tapped"> | <Core:EventTriggerBehavior EventName="Tapped"> | ||
− | <Core:InvokeCommandAction Command="{Binding | + | <Core:InvokeCommandAction Command="{Binding SetActiveReferenceCommand}"/> |
</Core:EventTriggerBehavior> | </Core:EventTriggerBehavior> | ||
</Interactivity:Interaction.Behaviors> | </Interactivity:Interaction.Behaviors> | ||
− | + | </Button> | |
</source> | </source> | ||
Line 27: | Line 27: | ||
{{Category/Version|2.6.1}} | {{Category/Version|2.6.1}} | ||
+ | |||
+ | [[Category:2.6.1|SetActiveReferenceCommand]] |
Revision as of 13:37, 20 March 2017
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>
<Interactivity:Interaction.Behaviors>
<Core:EventTriggerBehavior EventName="Tapped">
<Core:InvokeCommandAction Command="{Binding SetActiveReferenceCommand}"/>
</Core:EventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</Button>
See also
ActivateReferenceByScanCommand ContinueReferenceByScanCommand