< web:Blog x:Name="Brian Lagunas" />

21Aug/094

A Simple WPF Loading Animation

Okay, so I needed a very simple and clean loading animation for a multi threaded application I was working on to notify the user that something was in the process of being loaded.  So of course the first place I looked was Google, because I figured someone else has already written one and I could [...]

Filed under: WPF, XAML 4 Comments
3Jul/090

WPF Multithreading: Using the BackgroundWorker and Reporting the Progress to the UI.

I can’t count the number of times someone has asked me about running a time consuming task on a separate thread, but at the same time show a progress dialog with up-to-the-second percentage updates being displayed to the user. Multithreading can be confusing at first, but if you just take it one step at a [...]

Filed under: .NET 3.5, WPF No Comments
5Jun/091

BSDG – PRISM/MVVM for WPF Presentation Sample Code

As promised, I am posting the sample code I covered in the presentation for everyone to download and start playing with.  If you have any questions or would like me to discuss a specific aspect in more detail just drop me a line.
Download the Presentation Source.  This contains the all sample code that I discussed [...]

Filed under: BSDG, Prism, WPF 1 Comment
14May/092

Write a Sortable ObservableCollection for WPF

You probably have had the need to sort an ObservableCollection at some point in one of your applications by either ascending or descending order.  Of course, you can always use the ObservableCollection.OrderBy and ObservableCollection.OrderByDescending, but these methods just return a new collection of IOrderedEnumerable, which forces you have to rebind the DataContext/ItemsSource in your UI, [...]

Filed under: .NET 3.5, WPF 2 Comments
14Apr/090

Debugging XAML

Okay, so I have been asked this question more than almost any XAML related question in the past few weeks; How do I debug XAML?  The problem with XAML’s powerful binding model is that it can be difficult to debug errors in your binding paths.
Lets say I have the following code snippet:

<StatusBar>
<StatusBarItem>
[...]

Filed under: WPF, XAML No Comments
8Apr/090

Analyze performance issues in your WPF application with WPFPerf.

Do you have a WPF application that just seems to be slow in some areas and have no idea on how to track it down? Enter the WPFPerf profiling tool.  WPFPerf is a suite of performance profiling tools that allows you to analyze the run-time behavior or your WPF application.  It can also help determine [...]

Filed under: WPF No Comments
7Apr/090

WPF String.Format in XAML with the StringFormat attribute

So you want to format the output of information but don’t want do it in code behind or write a value converter to do it.  Well, good news, you don’t have to.  You can format your data directly in XAML.  How, you may be asking?  New in .NET 3.5 SP1 is the StringFormat attribute.
Example [...]

Filed under: WPF No Comments
7Apr/092

The Free Office WPF Ribbon

So you want to use a Ribbon toolbar similar to Microsoft Word in your applications, but you don’t want to purchase one from a third party. Well if you haven’t heard already, you can get a free one directly from Microsoft. Yes, you heard me correctly, FREE, and FROM MICROSOFT. So where do you get [...]

Filed under: WPF, XAML 2 Comments
28Mar/092

Boise Code Camp 2009 WPF for Dummies Presentation Sample Code

Thank you all for attending my presentation on WPF. I hope you left the room with a better understanding of WPF and how you can start using it in your applications.  As promised, I am posting a link to the sample code and some useful links.
Download Sample Source Code. This contains all the source code [...]

20Mar/091

NETDUG Post Presentation on WPF Data Binding

Thursday’s NETDUG meeting was a blast. There were a lot of great questions and I hope everyone walked away with a better understanding on how to get started with WPF. As promised I am posting my sample code and the web links I mentioned during the presentation.
Download the Presentation Source. This contains all the examples [...]

Filed under: NETDUG, WPF 1 Comment