Jump to: navigation, search

Changes


Developer Mode

1,612 bytes added, 12:19, 4 July 2019
/* Features */
{{Hint|As mentioned, the name of the context is not required at the beginning of the expression. However, it is required when you nest an expression in another one as its parameter. For example, you can enter "ExecuteShowMessageBoxCommand(Context.AppVersion)" to display the app version in a dialog. The "Context" keyword is needed for evaluating the parameter expression "AppVersion".}}
 
 
=== Errors {{Version/WinXSince|3.6}} ===
 
Since custom templates are always loaded on demand, there is no way for UBIK upfront to check whether it contains errors or not. This section lists the possible errors and the respective behavior of UBIK.
 
[[File:UI_WinX_ErrorTemplateNotFound.png|thumb|Error for a non-existing requested template]]
==== Missing template ====
 
if an object requests a special template, e.g. through the [[SYSCLS_CHILDAREATEMPLATE|child area template classification]], UBIK will try to locate the respective file in the XAML customizing folder of the current profile. If the file doesn't exist, it will display a red error box in the respective area.
 
{{Hint|Clicking the {{key press|Edit XAML}} button will in this case create an empty template with the requested template name in the XAML customizing folder!}}
 
 
[[File:UI_WInX_ErrorTemplate.png|thumb|Parsing error in a requested template]]
==== Parsing errors ====
 
If there is a syntax error in the XAML template, UBIK will try to surface the error message into the error template. This will most likely include a reference to the position in the XAML text that caused the error.
 
==== Runtime errors ====
 
These are the only errors that will lead inevitably to a crash of the App. An example for this would that your template tries to reference a ''StaticResource'' that doesn't exist.
However, UBIK will still try to write the full exception message to [AppInstallPath]\LocalState\UBIKDebug.log before termination, thus the corrupted line can again be easily identified.
 
[[Category:Pages with broken file links|Developer Mode]]
== Other features ==