in

Dé specialist in .NET trainingen en consultancy

Browse by Tags

  • Invoking an ICommand

      I wanted to reuse the logic of a Command defined in another usercontrol. The simple solution would be to create a separate, public method which I then could call from outside the control (and call this method in the Execute eventhandler). A more clean way is to directly invoke the Command! The...
    Posted to Jo-wen Mei (Weblog) by Jo-wen on 12-30-2009
  • WPF & xaml guidelines

      Wpf and xaml has been out for a while now, so the community already knows the do’s and don’ts of programming in xaml. Thankfully, there are always some nice people who share this stuff with us. This is a good resource and starting point. It also includes links to the channel 9 videos that give...
    Posted to Jo-wen Mei (Weblog) by Jo-wen on 12-30-2009
  • Grid Size Sharing WPF

      The other day, I had to show different datatemplates depending on a specific property value. (The datatemplateSelector is your friend!) I used different foreground colors to visualize the states; however, the layout design was the same for each datatemplate.   I was using a Grid, and wanted...
    Posted to Jo-wen Mei (Weblog) by Jo-wen on 12-16-2009
  • Check some (runtime) characteristics of a dependency property

      It's pretty easy to inherit from an existing control in WPF. For instance, this great programmer I know has written an extended combobox . It has extra functionality, like: * Automatically select the value if only one item is available in the items source; * Disable the control when no items...
    Posted to Jo-wen Mei (Weblog) by Jo-wen on 12-11-2009
  • When not implementing the ConvertBack method…

    I really like WPF converters. I often don’t need the ConvertBack method though. Most programmers deal with this by leaving the throw new NotImplementedException() , or they return null.   I also see this method being marked with the [Obsolete()]  attribute. I think this totally gives you the...
    Posted to Jo-wen Mei (Weblog) by Jo-wen on 12-10-2009
  • WPF vs Silverlight

    Last week, I was giving a Silverlight training in the beautiful Bergen (Norway). I have WPF experience, but I was still struggling with some demo’s because of its differences with Silverlight. Silverlight is supposed to be a subset of WPF but that’s not the case (yet). Silverlight even has functionalities...
    Posted to Jo-wen Mei (Weblog) by Jo-wen on 12-06-2009
  • How to debug WPF bindings

    The databinding expert in the field, Bea Stollnitz, has a great post about different options to debug your wpf binding. In summary, the options are: The output window Trace sources Trace level (new in 3.5) Converter you’ve got to check them out, it will save you a lot of time!
    Posted to Jo-wen Mei (Weblog) by Jo-wen on 11-19-2009
  • Arithmetic operations in xaml

    Many times, you want to bind a numeric value to another property AND perform some calculation over it. For instance, you would like to bind the width of your control to be half the size of its parent control. Take a look at this converter   It enables a xaml syntax like this: {Binding ElementName...
    Posted to Jo-wen Mei (Weblog) by Jo-wen on 11-11-2009
  • Compile-time checked region names in Prism

    In a R&D project of mine, I’m using Prism to create a composite WPF application. I can recommend anyone writing WPF or Silverlight applications to take a look at it if you’re unfamiliair with Prism. One thing I dislike about it though, is that is uses strings as region names. Meaning that there’s...
    Posted to Thomas Huijer (Weblog) by Thomas on 10-30-2009
  • Free Telerik WPF controls

    Telerik, a leading vendor of .NET UI components and tools, has a special offer for all active MSDN subscribers !! A free Developer License for RadControls for WPF ($799 value), with community support only. This license gives you access to all of the Telerik WPF controls for use in unlimited personal...
    Posted to Roland Guijt (Weblog) by Roland on 06-10-2009
Page 1 of 4 (36 items) 1 2 3 4 Next >