Changes

XAML Basics

1 byte added, 09:10, 28 April 2020
/* Binding options */
==== Binding options ====
* Standard (<span style="color: red">Recommended</span>) -> Attribute = ”{Binding Name of Property}”
<source lang = "xml">
Text = “{Binding CommentText}”
</source>
This Binding can be very practical, if you want ‘copy’ their value of an attribute or switch e.g. the Visibility of an element by making it dependent of the attribute value on a different element. There are various possibilities in how to bind to an ElementName. Also, the usage of a converter and a parameter is possible, which often comes handy.<br>
** '''Using a converter and an additonal parameter could look like this -> Attribute = “{Binding ElementName=element, Path=attribute, Converter={StaticResource converter}}”'''
<source lang="xml">
<!--With a converter-->