WPF: Specify your DataContext type

http://n3tm4n.wordpress.com/2012/02/20/wpf-specify-your-datacontext-type/

<StackPanel d:DataContext="{d:DesignInstance vm:BookViewModel}">
    <TextBlock Text="{Binding Path=Author, Mode=OneWay}" />
    <TextBlock Text="{Binding Path=Title, Mode=OneWay}" />
</StackPanel>


http://blog.galasoft.ch/posts/2014/04/xaml-intellisense-just-got-better/
http://msdn.microsoft.com/en-us/library/ff602274(v=vs.95).aspx

0 komentarze:

Prześlij komentarz

 
Tomasz Kulig