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….
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…
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…
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…
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…
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…
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…
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…
(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…
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…