1,272 bytes added,
12:35, 20 March 2017 {{CommandInfoBox
| title = Activate Reference
| name = {{PAGENAMEE}}
| 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 ==
{| class="wikitable" width=50%
|-
! width=30% | Name !! width=30% | 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:
<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>
== See also ==
{{Category/Version|2.6.1}}