Changes

XAML Tips

213 bytes added, 11:32, 23 August 2023
/* TeachInCommand */
This command is available in both '''ContentViewModel''' and '''PropertyViewModel'''.
* ContentViewModel.TeachInCommand: If possible, sets the current location of the device as the value of the context object's [[SYSCLS_GEO|geo property]]. Saves and commits the change;
* PropertyViewModel.TeachInCommand: If possible, sets the current location of the device as the value of the current property if it's a geo property (not necessarily the [[SYSCLS_GEO|geo property]]). <br/>The context prefix ('''''ContentViewModel''.''' / '''''PropertyViewModel.''''') is not required within the view model. Addtionally supports a boolean command parameter:** False (default): The change is not automatically saved. ** True: The change is saved.<br/> {{hint| Make sure you use the correct binding path for your command depending on your current context view model. E.g., if the context view model is already the ContentViewModel then your binding path should simply be TeachInCommand. You can use the [[Developer_Mode|developer mode]] to find out the current view model in a view.}}
[[Category:Client|XAML Tips]]
89
edits