svetoslavsavov.blogspot.com
Svetoslav Savov's Blog: Sorting and filtering databound listview in WPF
http://svetoslavsavov.blogspot.com/2009/09/sorting-and-filtering-databound.html
Thursday, September 24, 2009. Sorting and filtering databound listview in WPF. So WPF offers a way to deal with this with the so called "View" object. It provides functionality to sort, filter, and group items in listviews or other controls that display a collection of items. Applying a filter to a listview is pretty simple. First, we need to get the view object from the listview, and then provide a predicate that should tell if an item will be included in the filtered view or not. ViewFilter = null;.
svetoslavsavov.blogspot.com
Svetoslav Savov's Blog: February 2010
http://svetoslavsavov.blogspot.com/2010_02_01_archive.html
Sunday, February 21, 2010. WPF 40 New Features: Windows 7 Taskbar Integration. In WPF 4 there are some features which help us to easily integrate our software with Windows 7 Taskbar. Some of these features are showing thumb buttons in the thumbnail preview, showing progress in the taskbar item, accessing jump and task lists in items’ context menu. All of these features are nicely wrapped in classes and added as dependency properties to Window and Application classes. Windows 7 Taskbar components overview.
svetoslavsavov.blogspot.com
Svetoslav Savov's Blog: WPF Circle Launcher User Control and Application
http://svetoslavsavov.blogspot.com/2009/09/wpf-circle-launcher-user-control-and.html
Sunday, September 13, 2009. WPF Circle Launcher User Control and Application. Recently I started developing an user control for WPF which could replace the standard menu systems. The user control is a set of icons, ordered in a circle (or several circles, if there are a lot of icons), and each icon launches some functionality. The user control is customizable, there are parameters for the size of the icons, the radius of the circle, events for clicking and moving, etc. The current features include:.
svetoslavsavov.blogspot.com
Svetoslav Savov's Blog: July 2009
http://svetoslavsavov.blogspot.com/2009_07_01_archive.html
Sunday, July 26, 2009. Switching WPF interface themes at runtime, Part 2. In my previous post, Switching WPF interface themes at runtime. I explained how we can easily switch between interface themes at runtime using a simple property and even databinding. That was OK for a single element, or a single window. But what about if we have an application with a lot of windows? Using a global theme for the application. Let's take a look at the new code:. ElementsWithGlobalTheme = new List. If ( bool)e.NewV...
svetoslavsavov.blogspot.com
Svetoslav Savov's Blog: WPF 4.0 New Features: Text
http://svetoslavsavov.blogspot.com/2010/02/wpf-40-new-features-text.html
Saturday, February 20, 2010. WPF 40 New Features: Text. In the next series of posts I will write a little bit about the new features in the new WPF, part of Microsoft .NET Framework 4.0. So let’s begin with the improvements in text. Microsoft has significantly improved the way texts are rendered on the screen. They introduced several new options to allow us define the parameters of text rendering. These options are encapsulated in the properties TextOptions. TextFormattingMode. Auto (the default mode).
svetoslavsavov.blogspot.com
Svetoslav Savov's Blog: October 2009
http://svetoslavsavov.blogspot.com/2009_10_01_archive.html
Sunday, October 18, 2009. Behaviors Library for WPF. In my previous post, Behaviors in WPF with Expression Blend 3. I explained some basics about behaviors with Expression Blend 3. So now, I decided to start working on a library that will combine (hopefully) lots of behaviors for everyday use. I started with several behaviors for. Here is what the library contains for now:. Then, just drag and drop the behavior to an element to start using it:. And you’ll see the settings of the behavior in Blend:. In Ex...
svetoslavsavov.blogspot.com
Svetoslav Savov's Blog: Memory Leaks in WPF applications
http://svetoslavsavov.blogspot.com/2010/05/memory-leaks-in-wpf-applications.html
Saturday, May 22, 2010. Memory Leaks in WPF applications. In order to avoid creating memory leaks in WPF applications you need to know how to cause them. Here’s a list of the most common situations that cause memory leaks. Event handlers to objects in parent windows. Registering to events from static objects. Changing the Text property of a text box. I made a very simple application that demonstrates different cases of memory leaks. TextBoxFromParentWindow = textBoxFromParentWindow;. TextBoxFromParentWin...
svetoslavsavov.blogspot.com
Svetoslav Savov's Blog: September 2009
http://svetoslavsavov.blogspot.com/2009_09_01_archive.html
Thursday, September 24, 2009. Sorting and filtering databound listview in WPF. So WPF offers a way to deal with this with the so called "View" object. It provides functionality to sort, filter, and group items in listviews or other controls that display a collection of items. Applying a filter to a listview is pretty simple. First, we need to get the view object from the listview, and then provide a predicate that should tell if an item will be included in the filtered view or not. ViewFilter = null;.
svetoslavsavov.blogspot.com
Svetoslav Savov's Blog: May 2010
http://svetoslavsavov.blogspot.com/2010_05_01_archive.html
Saturday, May 22, 2010. Memory Leaks in WPF applications. In order to avoid creating memory leaks in WPF applications you need to know how to cause them. Here’s a list of the most common situations that cause memory leaks. Event handlers to objects in parent windows. Registering to events from static objects. Changing the Text property of a text box. I made a very simple application that demonstrates different cases of memory leaks. TextBoxFromParentWindow = textBoxFromParentWindow;. TextBoxFromParentWin...
svetoslavsavov.blogspot.com
Svetoslav Savov's Blog: Behaviors in WPF with Expression Blend 3
http://svetoslavsavov.blogspot.com/2009/10/behaviors-in-wpf-with-expression-blend.html
Sunday, October 18, 2009. Behaviors in WPF with Expression Blend 3. In Expression Blend 3, there is this new cool thing, called behaviors. In very simple words, these are special forms of objects which are attached to another object (usually an element in the UI) and perform some actions thus defining the behavior. Creating a custom behaviors is pretty simple. In Expression Blend, go to File - New Item, and select Behavior. The structure of a behavior. The behaviors for my game. In my demo game, I need t...