== XAML Customizing / UI Integration ==
To display traits in custom XAML templates, make them editable, or create new ones, standard {{UBIK}} controls like <code>[[EvalExpression|EvalExpression]]</code> or <code>SfListViewExt</code> are used.
=== 1.Displaying all Traits in a List View (read-only) ===
=== 2. Editing a single Trait or Property via ValueAccessors ===
To dynamically query and edit a specific trait, an <code>[[EvalExpression|EvalExpression]]</code> with the <code>ValueAccessors</code> Context should be used. The <code>TwoWay</code> binding ensures that changes are written directly back to the ViewModel.
<syntaxhighlight lang="xml">
=== 5. Editing specific Data Types (e.g., DatePicker) ===
Traits store actual underlying Data types (such as <code>DateTime</code>). This means you can bind regular UI controls like a <code>DatePicker</code> directly to the result of the <code>[[EvalExpression|EvalExpression]]</code>.
<syntaxhighlight lang="xml">