Windows Store apps for Absolute Beginners with C#

Part 8: Understanding how Data Binding Works at Design Time

Download this episode

Download Video


In this lesson we take a short aside and learn about the design time experience in Visual Studio and learn how it is able to render sample data.  This gives us insights into binding syntax, data collections, schemas and more.



Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • LukePuplett

      I used to be able to just detect design-time in the page constructor and hook-up some view models with some fake data. This no longer seems to work; I set the DefaultViewModel but the IDEs still say that there's no DataContext set, but it works at runtime.

      I take it something has changed from WP7, SL and WPF. How do we simply add fake values to TextBlock controls? There's no fallback value either.

    • LukePuplett

      P.S. I didn't know about the dark "Blue Thunder" (my name) VS theme until this series, so I'm pleased if I only learned that Wink

    • BobTabor

      @LukePuplett: Hi Luke, I'm sorry I don't have an answer for you here.  I was not aware that anything changed, but I'm definitely not an authority on these matters.  If I come across anything I posted it here.  Sorry!

    • Beau

      Nice work on the videos..Just sent out for a book on app development then found this site. I think I will be making my first app for the app store soon... Thanks oo and..P.S. any coupon codes for your site?

    • BobTabor

      @Beau: Thanks Beau!  Unfortunately I have no coupon codes or anything like that.  There is a sale going on for our 10 years anniversary ... since it will be year 11 here in a few days, I would jump on that quickly.  Smiley  Best wishes!!!

    • BobTabor

      Opening comments

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.