Changes

Code Editor

964 bytes added, 08:12, 23 April 2013
! Item !! Purpose
|- align="left"
| View Style || Indicates or changes the [[#View Style|View Style]] of the control; changing it will result in reloading of the control |- align="left"| Insert code snippet...|| Displays a sub menu with predefined {{UBIK}} [[#Code snippets|code snippets]]; selecting one will insert the respective code at the current caret position
|- align="left"
| Navigate to context object || Attempts to [[Navigation|navigate]] to the current context MetaClass
===Custom===
In this view mode it is possible to store code which is not related to events, methods or MetaProperties but shall still be assembled with a MetaClass or with the entire customizing. Use this if you want to provide a code library or classes that shall be used by your custom event or property/method code.
 
==Code snippets==
 
===Start workflow snippet===
This snippet will insert the code to execute an {{UBIK}} workflow synchronously, meaning in the same thread as the rest of the code is executed. So code execution will only continue after the workflow is finished. Example:
 
<source lang = "csharp">
//*** Calling UBIK Workflow: WFICON Assign icon
Dictionary<string, object> args = new Dictionary<string, object>();
args.Add("UBIKObject", this);
UBIK.WorkflowBase.Invoker.InvokeWorkflow(this.MetaClass.AllWorkflows.Find(p => p.ID == "2bf8f8e9-156d-4914-bd25-fd133148638d"), args);
//*** End of calling UBIK Workflow
</source>
 
This code locates the workflow object at the MetaClass of the object using its UID, loads the declared XAML code and sends it to the invoker.
==Other functionality==