Browse by Tags

All Tags » WPF
  • Where’s my DataContext?

    Every now and then a question comes up concerning a missing DataContext.  The questions usually center around a ViewModel being set to a View properly, but then developer can not bind some command or property to a FrameworkElement.  And typically the FrameworkElement in question is nested within an ItemsControl’s ItemTemplate or other ...
    Posted to Sergio Loscialo's Blog (Weblog) by sloscialo on July 26, 2011
  • Remote Debugging Startup procedures in WPF

    This week I was debugging a problem with a WPF application.  Actually, it being a WPF app had little to do with the problem.  No, what I was testing was the installer process.   We’re writing a new WPF frontend for an existing system and the application needs to  installed via a InstallShield installer.  It’s a legacy ...
    Posted to Walt Ritscher's Blog (Weblog) by writscher on August 10, 2010
  • Taking a Look at Content Controls

    A fair portion of the time, the content of a FrameworkElement is text. Some elements, like TextBox and TextBlock make this obvious, by providing a Text property. The Text Property is of type String and it trivially easy to set in XAML. [example]   <TextBlock Text='This control is intended to show text' /> Other ...
    Posted to Walt Ritscher's Blog (Weblog) by writscher on July 14, 2010
  • Model-View-ViewModel (MVVM) Explained

    The purpose of this post is to provide an introduction to the Model-View-ViewModel (MVVM) pattern. While I've participated in lots of discussions online about MVVM, it occurred to me that beginners who are learning the pattern have very little to go on and a lot of conflicting resources to wade through in order to try to implement it in their own ...
    Posted to Jeremy Likness' Blog (Weblog) by Anonymous on April 14, 2010
  • A Twist on the Observer Pattern

    The observer pattern is well established and used. The typical scenario is to register to an class and then allow your Notify method to be called. This often involves keeping an internal list of observers and then iterating them to notify that something has changed. I had a situation recently that warranted a lighter weight approach that allows a ...
    Posted to Jeremy Likness' Blog (Weblog) by Anonymous on September 23, 2009
  • Editing WPF Controls in Expression Blend

    This is one of those quirks that until you try it, you may not know it exists or what the answer is. I am working on a WPF project and have a separate control library (actually, a module because I am using the Component Application Guidance/PRISM pattern). I pulled it into Expression Blend and was surprised to see that I had no ''design'' view. ...
    Posted to Jeremy Likness' Blog (Weblog) by Anonymous on September 20, 2009
  • WPF – Animating multiple elements simultaneously

    A question appeared on StackOverflow asking how to animate a property on multiple elements from one or more trigger mechanisms (i.e. a button click or list box selection).  The traditional approach (for brevity’s sake, I omitted the Xaml comprising the actual UI elements) is rather straight-forward: <Window.Resources> ...
    Posted to Sergio Loscialo's Blog (Weblog) by sloscialo on August 6, 2009
  • Prism Presentation – Code and Slides

    I recently had the pleasure of speaking at CodeStock 2009 and was very impressed with the conference overall.  The folks behind this conference put in a lot of work and did a really great job.  I got the chance to see some really good presentations as well.  I look forward to attending CodeStock in the future.  The code and ...
    Posted to Rik Robinson's Blog (Weblog) by rrobinson on July 1, 2009
  • Virtual WPF - Data-binding examples

    Data is at the heart of virtually any business application.  WPF ships with a flexible data binding engine that simplifies writing data centric applications.  I spend a lot of time during my WPF class talking about this data-binding feature.  In fact I devote three sections during the week to this topic. Last week I added a new ...
    Posted to Walt Ritscher's Blog (Weblog) by writscher on March 12, 2009
  • Talking about Microsoft Surface

    The last couple months have been a hectic flurry of activity. Not only have I been at several conferences and the MVP summit I've also been putting the finishing touches on our Mastering Microsoft Surface™ Development with WPF class.  This class is going to be a lot of fun to teach.  First of all the class is chock full of WPF ...
    Posted to Walt Ritscher's Blog (Weblog) by writscher on March 12, 2009
Powered by Community Server (Commercial Edition), by Telligent Systems