Browse by Tags

All Tags » wpf (RSS)

Reflectoron: Transform and Roll Out! by aelij

A few months ago I've decided to write a Prism tutorial by building a WPF UI for the .NET Reflector . Red Gate, the owner of Reflector, liked the idea so they asked me to write it for their magazine, Simple Talk. Today the article was published, and you...
Filed under: , ,

WPF Controls Class Diagram by aelij

I’ve prepared a class diagram for my students of main WPF controls, divided into Decorators, Panels, Content Controls and Items Controls. The diagram was generated using the new Visual Studio 2010 Visualization and Modeling Tools (with a bit of...
Filed under: ,

Peaceful Coexistence by aelij

One of the new features in .NET 4.0 is Side-By-Side In-Process (SxS InProc) execution of older CLRs (e.g. .NET 2.0). Previously, SxS was supported only in different processes. If you look it up, you’ll find these two (yet to be updated) blog posts...
Filed under: , , ,

Local values in DependencyObjects by aelij

If you’re writing a custom control in WPF, you may have encountered a very annoying bug: if you set the value of a DependencyProperty in your implementation code, the local value will trump any changes that you may try to apply to this property...
Filed under: ,

Hey La, Hey La, ClearType’s Back by aelij

One of the most referenced posts in this blog is the one dealing with the ClearType issues . Those of you who shared my pain will be glad to hear that Microsoft has delivered on its promise: WPF is getting a new text rendering stack in v4, which has the...
Filed under: , ,

Presenting PresentationHost by aelij

I always prefer simpler solutions. The solution I proposed on my previous post was not that simple, and was not complete. It may still be useful for other stuff, but for the purpose of preserving ClearType while using DWM, I just have to admit it has...
Filed under: , , , ,

Casper to the Rescue! by aelij

WPF has ClearType issues . Hopefully some of them will be solved in the upcoming .NET 4.0. Meanwhile, however, I have concocted a nifty solution to one of the scenarios – placing stuff on the Aero Glass DWM frame. When you extend the DWM frame in...
Filed under: , , , , ,

Theme Manager: A Hackly Hack by aelij

One of the most popular posts in this blog is the one explaining how to override the system theme and get the Vista look on non-Vista systems. This is possible because WPF ships with the theme files for all operation systems (well, all Microsoft OSs that...
Filed under: ,

Activator 2: XAML and Generics Day by aelij

First of all, you didn't miss part one. Just thought it was a funny reference . I'm currently working on a new release of WPF Contrib . In my TaskDialog class, I used a few classes I derived from ItemsControl (which I'm considering deleting in this version...
Filed under: , ,

Improper use of InteropBitmap can cause a memory leak by aelij

I've been using InteropBitmap in my GdiTextBlock . The control creates a new GDI+ Bitmap every measure pass, which it then converts to a WPF BitmapSource using the Imaging.CreateBitmapSourceFromHBitmap() method (this method returns an InteropBitmap)....
Filed under:

Shady Pixels by aelij

In my previous post I mentioned the new Zune 3.0 visualizations. I really liked them, so I decided to try and create them using WPF's new (3.5 SP1) Effects. A while ago I wrote about BitmapEffects, and why you should try to avoid them. Effects replace...
Filed under:

Good Old GDI+ (or: Unblur Thy Text) by aelij

It's been a while since I've done anything with GDI+ (i.e. System.Drawing). System.Windows (i.e. WPF) is so much more powerful. However, there's one area where it seems the good old GDI+ can still surpass it's shiny new successor: text. There have been...
Filed under: ,

The WPF Contrib Project by aelij

I've been quiet for a while. Working a lot, and also burning the midnight oil, trying to bring life into this project I call... the WPF Contrib . Set up at CodePlex, WPF Contrib is mainly a library of reusable components. My goal is for it to become...
Filed under: , ,

Trace (route) that call! by aelij

Have you ever used EventManager.RegisterClassHandler() ? If so, make sure you know what you're doing. This method allows you to listen to events passing through (as I like to put it) an element (i.e. bubbling or tunneling), regardless of the class that...
Filed under:

Dispatch It by aelij

In WPF, like most UI frameworks, UI elements can only be updated from the thread they were created on. If you do background work, and want to affect the UI from a different thread, you'll have to dispatch it. The Dispatcher class has a CheckAccess() method...
Filed under: ,
More Posts Next page »
Powered by Community Server (Non-Commercial Edition), by Telligent Systems