Tag Archives: WPF

Create A Snapping Slider In Blend Using Behaviors (Silverlight 3 or WPF)

Posted on by matthias

UPDATE: It turns out that in WPF, there is an easier way to snap the slider. For integers, simply check the “IsSnapToTickEnabled” and set your TickFrequency accordingly. Which means that this behavior is really only useful for Silverlight, which doesn’t have those properties. Behaviors are easily the coolest thing that has ever happened to anything….

...  Read More

Creating a Programmatic Path in Silverlight (or WPF)

Posted on by matthias

Download Project Files for Creating a Programmatic Path in Silverlight or WPF (Note: The project is in Silverlight, but if you copy and paste the code into a WPF project, it should work without any changes) Have you ever wanted to create a Path programmatically or create a Path in code behind or dynamically build…

...  Read More

How to Assign ColumnHeaderContainerStyle and ColumnHeaderTemplate to a ListView Style

Posted on by matthias

This is just a quick note on creating a ListView style with the appropriate GridView style and template assignments. Normally, I’ve been creating listviews that look like this: <ListView x:Name=”MyListView”                ItemContainerStyle=”{DynamicResource MyListViewItemContainerStyle}”>     <ListView.View>          <GridView ColumnHeaderContainerStyle=”{DynamicResource MyListViewHeaderStyle}”                          ColumnHeaderTemplate=”{DynamicResource MyGridColumnHeaderTemplate}”>  I did this because I didn’t know exactly how to assign these styles…

...  Read More

How Do I Make a ListView or a ScrollViewer Left Handed?

Posted on by matthias

Several months back, I was doing some work for a company that was using WPF for a stylus based application. One of the things that they found they needed was a scrollbar that could be used by left handed people who would have to cover the entire screen with their left hand in order to…

...  Read More

Wii + WPF = Multipoint UX

Posted on by Galen Murdock

We’re at MIX08 in Las Vegas this week, and presenting in a few sessions.  If you’re here, come check out Matthias Shapiro and Galen Murdock’s Wii + WPF = Multipoint demo in Marcello 4403 on the 4th floor.  We’re in Open Space #3 from 11:30am-1:00pm.  Apparently our posting on the bulletin board has garnered quite a…

...  Read More

Special Leap Day Link-O-Rama

Posted on by matthias

My brain is out of town while I’m working on our MIX Show Off Entry. In the meantime, I need to post some links so that I don’t forget them. I suppose you can use them too, if you want: Overriding (or adding to) default event handlers Custom Searching Through an Observable Collection More on…

...  Read More

How Do I Style The ComboBox Items?

Posted on by matthias

This is actually a continuation of my post on getting the ComboBox items to accept text wrapping, so I’ll be working from that point forward. If you’re coming fresh into this, you won’t be missing anything… but that is my explaination for the pictures containing wrapping text. When last we left our heroes, we has…

...  Read More

The WPF Designers Guide to Styling The ComboBox

Posted on by matthias

 The ComboBox is not the most complex of the WPF applications, but it can be a little tricky, so lets do a general overview post of it before we go into the specifics of how we’re going to make it work. First of all, if you’re going to test your comboBox design, you should have…

...  Read More

Using WPF Binding For A Huge Performance Boost

Posted on by matthias

(I’m getting to the point in a roundabout way… you can skip directly to the point below if you want.) When I started working on my WPF-Wii tutorials, my first Wii project was the initial version of the WPF-Wii Visualizer. However, I quickly got tired of writing the code for handling events and transferring the…

...  Read More

WPF Multi-Point Tutorials, Part 1.5: WPF Visualization of Wii Data

Posted on by matthias

Download WPF Wii Data Visualizer (App only, 355K) Download WPF Wii Data Visualizer (Visual Studio 2008 Source, 676K) Warning: The project will not run if your Wii controller isn’t connected to your computer. Using the WPF Wii Data Visualizer (Video) OK, now that we’ve gotten our Wii Controllers all hooked up to our computers, it’s…

...  Read More