Changes

XAML Best practices

21 bytes added, 21 August
/* Context Switching */
<br>
The above attributes can be added to any control to change it's binding context.
<br>
<br>
Text="{Binding Title}" />
</source>
<br>
<br>
By using this code snippet, we expect to see the Title or the current object. However, because we have a context switch applied, we would instead see the Title of the parent object.
{{Attention| For Xamarin use '''Label''' instead of TextBlock and '''BindingContext''' instead of DataContext.}}
 
<br>
<br>
[[Category:Pages with broken file links|XAML Best practices]]
511
edits