w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Binding a code-behind defined property to a DataContext property in XAML?

{RelativeSource Mode=Self} refers to the current element, in this case ListView, so it's not what you want. The easiest way is to give a name to the root element (the Page), for instance "root", and specify ElementName=root in your binding.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.