Jump to: navigation, search

Difference between revisions of "ActivateReferenceByScanCommand"


(Created page with "{{CommandInfoBox | title = Activate Reference by Scan | name = {{PAGENAMEE}} | purpose = Activate the reference to the current content object to be set on a scanned target | v...")
 
(CommandProperty)
Line 9: Line 9:
 
The ActivateReferenceByScan Command ist used to set references on target content via scanning. The command can be used when the source content object is present in the current context.
 
The ActivateReferenceByScan Command ist used to set references on target content via scanning. The command can be used when the source content object is present in the current context.
  
== CommandProperty ==
+
== Command Property ==
 
{| class="wikitable" width=50%
 
{| class="wikitable" width=50%
 
|-
 
|-
Line 16: Line 16:
 
| ''Target Reference ID'' || | optional ID of the target property ID, if not provided the first available and writable {{Guid}} property will be set
 
| ''Target Reference ID'' || | optional ID of the target property ID, if not provided the first available and writable {{Guid}} property will be set
 
|}
 
|}
 +
 +
Example:
 +
<source lang = "xml">
 +
    <Button Height="38" Content="Scan And Link">
 +
<Interactivity:Interaction.Behaviors>
 +
<Core:EventTriggerBehavior EventName="Tapped">
 +
<Core:InvokeCommandAction Command="{Binding ActivateReferenceByScanCommand}" CommandParameter="SCANREF"/>
 +
</Core:EventTriggerBehavior>
 +
</Interactivity:Interaction.Behaviors>
 +
</Button>
 +
</source>
 +
 +
[[Category:2.6.1|ActivateReferenceByScanCommand]]
 +
[[Category:Pages with broken file links|ActivateReferenceByScanCommand]]
  
 
== See also ==
 
== See also ==

Revision as of 12:20, 20 March 2017

IC COMMAND.png Activate Reference by Scan
Name ActivateReferenceByScanCommand
Purpose Activate the reference to the current content object to be set on a scanned target
Version 2.6.1+
ViewModel ContentViewModel

The ActivateReferenceByScan Command ist used to set references on target content via scanning. The command can be used when the source content object is present in the current context.

Command Property

Name Data type Comment
Target Reference ID optional ID of the target property ID, if not provided the first available and writable Guid property will be set

Example:

    <Button Height="38" Content="Scan And Link">
                                                <Interactivity:Interaction.Behaviors>
                                                        <Core:EventTriggerBehavior EventName="Tapped">
                                                                <Core:InvokeCommandAction Command="{Binding ActivateReferenceByScanCommand}" CommandParameter="SCANREF"/>
                                                        </Core:EventTriggerBehavior>
                                                </Interactivity:Interaction.Behaviors>
                                        </Button>

See also