|
|
Browse by Tags
All Tags » Learning WPF (RSS)
Sorry, but there are no more tags available to filter with.
-
So after some research, I discovered what it takes to support Input Binding (E.G. key gestures) for the Delegating Command : absolutely nothing. Although you can configure a Routed Command's Input Bindings using the Command Manager, you can also do it in XAML using UIElement.InputBindings like so: <Window.InputBindings> <KeyBinding Key="B" Modifiers="Control" Command="ApplicationCommands.Open" /> </Window.InputBindings> Here's the really fun part. You can configure Input Bindings for any ICommand (like a Delegating Command exposed as a property on your View Model (or Acropolis Part)). In all honesty, I'm seeing less and less use for Routed Commands. I for one won't be using them going forward. It's time for us to begin sailing the 4C's again. I've just dusted off Part Two of Code Climber Custom Controls and it's going to be a doozy just like it's predecessor . It just needs one more evening/morning writing cycle to complete. Read More...
|
-
I've been running Vista at the office since Beta 2. And although I ran it on my old mule of a laptop at home, it didn't quite have enough to enable Aero...I actually wish I had a screen shot of the 1.0 graphics score it got. While graphics are still a liability on my laptop...(I probably won't be playing Halo 2 on it), it did manage to get a 3.0. Everything else was in the high 4's. Now that I have a personal machine that can do everything Vista is capable of, I've had a few wow moments. Like when I did the win+tab switching while a video was playing in IE...(a Silverlight video no less) and it was streaming seamlessly in the preview mode. Or when I hovered over the task bar and saw the same thing. The screen shot Doesn't do it justice...but if you've seen it in action, you know what I'm talking about. Before Vista was released, there were a lot of questions about just what advantage the DWM (Desktop Window Manager) would bring over User and GDI. There were even comparisons between the Read More...
|
-
So, I've touted the advantages of Attached Dependency Properties extensively in the forums. One of my favorite uses of Attached Properties is the fact that you can use them to attach additional functionality to an object -- named the Remora Pattern by Ben Constable . Technically, I think it's a bit of a misnomer because a Remora doesn't provide any benefit to its host...it doesn't harm it, but it definitely doesn't provide any benefit. So, after a quick search through wikipedia for mutually beneficial symbiosis , I found the Egyptian Plover , also known as the crocodile bird. The plover eats parasites off of the crocodile, providing it relief from pests. In exchange, the Plover gets a veritable smorgasbord and the safest home in the Nile. Although the name remora does a good job at getting the idea of "attaching" across, it doesn't do so well with the idea of enhancement, which is what the pattern does. However, once a pattern is named, for consistency sake, we should stick to Read More...
|
-
So two post ago I gave a brief overview of my 4C series . Unfortunately, after promising to deliver this first entry in the series, I realized that I'm assuming knowledge of WPF development in general. But fear not my fellow coders! Because we are starting at the same place that every Windows programming tutorial before starts: with a simple hello. Indeed, you can consider this a crash course in WPF development itself for new comers, although I would recommend further training before you go full-bore into WPF development (for the patient ones among you, I will be writing a proper series on general WPF development later). But before we get to the good stuff we've got to get our development environment ready. Here's what you need: Windows XP SP2, Server 2003 SP1, or Vista .Net Framework 3.0 RTM (pre-installed on Vista) Windows Vista SDK (provides a quick local reference of the .Net 3.0 APIs and support for compiling .Net 3.0 apps) (optional) Visual Studio 2005 Professional or better. (I'd Read More...
|
-
So I was writing my first entry in the 4C series when it came to me: I don't think I've given a proper introduction to WPF. Well at least not since it was fully released. Although there are a million places one could go to get a quick overview. I figured it wouldn't hurt to make that a million and one. So without further ado, I give you my dear reader: A No-Holds-Barred Marketing Free Overview of WPF What is WPF? It is a simple question, but the evidence suggests that it is not such a simple answer. On the official WPF Community Site , Microsoft provides a WPF overview presentation in four varieties 1, 3, and 5 slide, and 1 hour. Here's the simple synopsis: the Windows Presentation Foundation is a framework that provides support for the presentation layer of a Windows application. Yes I know what you're thinking: doesn't Windows Forms already provide a full day's supply of my application's UI needs? Well yes and no. There are many applications that can do just fine with what windows forms Read More...
|
-
.Net Framework 3.0 has RTM'd (and is available on subscriber downloads). FINALLY I can stop uninstalling/reinstalling the latest Beta/CTP/RC version. Maybe I'll re-image my workstation to make sure that it can breath. Also of note is that Office 2007 has RTM'd as well. I JUST put the Beta 2 Tech Refresh on my machine (I'm loving the new logos), but since I'm doing a re-image anyway, why not drop the final version on there as well? Now if I can get through the rest of this project, I might have some time to go back to tinkering with WPF! Read More...
|
-
Remember how I compared WPF programming to ASP.Net development. Well the comparison goes separating UI design and logic development. Just like web applications, WPF applications can navigate from page to page. Also like a web application, navigation pages can occupy the entire window or a designated frame on that window. What benefit does this bring? If you think of a Dashboard application, the primary functionality is presenting data. The main window can be a series of links to the various reports that are of interest to the user. What's more, the dashboard can be embedded in a larger app that provides more functionality. The real beauty of it all is that the pages of the dashboard do not have to care about whether they are embedded or not. All they have to worry abut is showing their data. And just like a web application all it takes is a hyperlink to move from page to page. But if you want to get beyond just showing data and actually want to collect data from your users, all but the Read More...
|
-
Remember how I compared WPF programming to ASP.Net development. Well the comparison goes separating UI Read More...
|
-
When I first started learning WPF, the documentation was in its infancy. Thus, I did most of my learning Read More...
|
-
Not too long ago, Paul Stovell , a fellow WPF apprentice asked if there was a way to get a list of all Read More...
|
-
So I finally upgraded my machine to the June CTP of .NetFX3 and found my code was broken. Basically it Read More...
|
-
In order to appreciate better what WPF brings to the table, I feel it's necessary for me to learn about Read More...
|
-
WPF is an exciting new technology and I will be writing a lot about it in the upcoming days/weeks/months Read More...
|
-
I bumped into a relatively old posting on Rob Relyea's blog that talks about the differences between Read More...
|
-
One of the greatest features of WPF is that it makes Desktop Development accessible to Designers like Read More...
|
|
|
|