I was looking at code in WPF which is in VB. I am trying to convert it to C#. Eventhough I used VB .Net to C# converter I cannot figure out the correct syntax for the following code in C#. Any ideas how to write this in C#?I was looking at code in WPF which is in VB. I