Phil

Phil

  • NA
  • 3
  • 2.4k

Data binding without typing out xaml

Sep 1 2010 6:20 PM

Now I'm not stumped on getting data binding to work, I simply want to know how to utilize the window interfaces that visual studio 2010 comes with - as opposed to typing in XAML.  All I want to do is bind a font size property to an xml file within the project.  

Here's what I do: After selecting the text box, in the properties panel, i go to the text category then click on the data-binding icon next to the font size field.  I then click on 'apply data binding', where a small panel pops up.  This is where I become stuck.  It seems like I need a path to the xml file, but I don't know how to add that in without typing in XAML.  I would assume that I would be able to add in a resource somewhere - kind of like windows forms allow me to do.

I've never worked with WPF before, so I know it's something small/simple that i'm missing.  Any help would be appreciated.

thanks,

Phil


Answers (2)