Jump to: navigation, search

Changes


XAML

1,449 bytes added, 09:53, 23 October 2023
/* Properties */ Added overview on indirect property editing
== Properties ==
{{Hint|The previously listed available properties for binding is removed from here. Since it's more accurate and up-to-date to use the [[Developer Mode]] to inspect them in your version of the clients.}}
 
=== Editing Properties ===
There are currently 3 main ways to trigger property editing (aside from direct editing) in XAML:
* [[EditPropertyValueCommand]] uses a MetaProperty name as a parameter, to trigger the editing dialogue for that metaproperty.
** It is located on the ContentViewModel, and automatically triggers a Save and Commit once the edit is confirmed.
* Similarly, the (PropertyViewModel).ShowEditorCommand/.PropertyClickedCommand triggers the editing dialogue, however, being located on the PropertyViewModel, it is necessary to first access a single property, such as by triggering the command on a list item template, or by directly binding to a specific one using a metaproperty indexer.
** These two commands are equivalent, the ShowEditorCommand being more general and redirecting for Live Values or properties with Value Records, or else triggering the PropertyClickedCommand.
** These commands can be seen in action as the standard UI for properties when clicking on the icon to trigger "indirect" editing for any individual metaproperty.
** Property changes are not saved automatically, but set the ToSave flag on the ContentViewModel, meaning that a SaveAndCommit command is required to commit the changes.
* The [[XAML_Tips#SetPropertyValueCommand|Set Property Value Command]] sets a named property to a specific or calculated (such as through an [[EvalExpression]]) value.
 
[[Category:WinX|XAML]]
[[Category:XAML|XAML]]
== Commands ==
511
edits