Jump to: navigation, search

Difference between revisions of "ActivateReferenceCommand"


(Command Property)
(Command Property)
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
 
|}
 
|}
  
Example:
+
Example: This will set a source reference on a target object having a writable reference property with the id "SCANREF"
 
<source lang = "xml">
 
<source lang = "xml">
 
     <Button Height="38" Content="Scan And Link">
 
     <Button Height="38" Content="Scan And Link">
Line 31: Line 31:
  
 
== See also ==
 
== See also ==
 
+
[[ActivateReferenceByScanCommand]]
  
 
{{Category/Version|2.6.1}}
 
{{Category/Version|2.6.1}}
 +
 +
[[Category:2.6.1|ActivateReferenceCommand]]

Latest revision as of 12:47, 20 March 2017

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

The ActivateReference Command ist used to set references on target content. The command can be used when the source content object is present in the current context. Once the command is triggered, the user can navigate to another object. This object wil now reference to the source object, which the command was called from.

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 on the target object.

Example: This will set a source reference on a target object having a writable reference property with the id "SCANREF"

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

See also

ActivateReferenceByScanCommand