WPF DataContext syntax - Convert from C# to VB

Posted by hawbsl on Stack Overflow See other posts from Stack Overflow or by hawbsl
Published on 2010-05-18T19:49:01Z Indexed on 2010/05/21 11:30 UTC
Read the original article Hit count: 240

Filed under:
|
|
|

Currently working through a Teach Yourself WPF tutorial. Usually I can mentally convert from C# to VB without any problem but this C# syntax is unfamiliar. How is it written in VB?

Private void Button_Click(object sender, RoutedEventArgs e)
{
    ((Person)DataContext).FirstName = "blah blah"
}

My usual fave online converters are choking on this ... perhaps because they don't do WPF?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about datacontext