Quantcast
Channel: Thomas Levesque's .NET blog » WPF
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

[WPF] Automatically sort a GridView (continued)

A few months ago, I wrote a post where I explained how to automatically sort a GridView when a column header is clicked. I had mentioned a possible improvement : add a sort glyph in the column header...

View Article



Image may be NSFW.
Clik here to view.

[WPF] Markup extensions and templates

Note : This post follows the one about a a markup extension that can update its target, and reuses the same code. You may have noticed that using a custom markup extension in a template sometimes lead...

View Article

[VS2010] Binding support in InputBindings

THE feature that was missing from WPF ! Visual Studio 2010 beta 2 has been released last week, and it brings to WPF a long awaited feature : support for bindings in InputBindings. As a reminder, the...

View Article

Image may be NSFW.
Clik here to view.

[WPF] A simpler Grid using XAML attribute syntax

The Grid control is one of the most frequently used containers in WPF. It allows to layout elements easily in rows and columns. Unfortunately the code to declare it, while simple to write, is made...

View Article

Image may be NSFW.
Clik here to view.

[WPF] How to bind to data when the DataContext is not inherited

The DataContext property in WPF is extremely handy, because it is automatically inherited by all children of the element where you assign it; therefore you don’t need to set it again on each element...

View Article


Image may be NSFW.
Clik here to view.

[WPF] Display an animated GIF image

Note: The code in this article is out of date; the current code is hosted on Codeplex. WPF is a great technology, but sometimes it seems to be missing some really basic features… A frequently mentioned...

View Article

Image may be NSFW.
Clik here to view.

[WPF 4.5] Subscribing to an event using a markup extension

It’s been a while since I last wrote about markup extensions… The release of Visual Studio 11 Developer Preview, which introduces a number of new features to WPF, just gave me a reason to play with...

View Article

Image may be NSFW.
Clik here to view.

[WPF] Creating parameterized styles with attached properties

Today I’d like to share a trick that I used quite often in the past few months. Let’s assume that in order to improve the look of your application, you created custom styles for the standard controls:...

View Article


Image may be NSFW.
Clik here to view.

[WPF] Using Linq to shape data in a CollectionView

WPF provides a simple mechanism for shaping collections of data, via the ICollectionView interface and its Filter, SortDescriptions and GroupDescriptions properties: // Collection to which the view is...

View Article


[WPF] Prevent the user from pasting an image in a RichTextBox

WPF’s RichTextBox control is quite powerful, and very handy if you need to accept rich text input. However, one of its features can become an issue: the user can paste an image. Depending on what you...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images