WPF
If you want to implement MVVM for your next/current project, but you can’t seem to find a framework that works for you then give a look at Rob Eisenberg’s presentation from MIX10, Build Your Own MVVM Framework. Here’s the synopsis: You've heard a lot about Model-View-ViewModel (MVVM), but you've struggled to see how it can help you in your day-to-day work. Or, you're experienced at implementing MVVM, but looking for some ways to maximize your investment in this methodology. In this talk, we build a simple MVVM framework by iteratively identifying pain points in our UI...
Source Code Part 1: The Bootstrapper Part 2: The Shell Part 3: Regions Part 3b: View Injection and The Controller Pattern Part 4: Modules Part 5: The View-Model Part 5b: ServiceLocator vs Dependency Injection Part 6: Commands Part 6b: Wrapping IClientChannel I wasn’t originally planning on a post specific to this topic, and there is likely some rehashing...
Source Code Part 1: The Bootstrapper Part 2: The Shell Part 3: Regions Part 3b: View Injection and The Controller Pattern Part 4: Modules Part 5: The View-Model Part 5b: ServiceLocator vs Dependency Injection Part 6: Commands Part 6b: Wrapping IClientChannel I have to apologize for the length of this...
Source Code Part 1: The Bootstrapper Part 2: The Shell Part 3: Regions Part 3b: View Injection and The Controller Pattern Part 4: Modules Part 5: The View-Model Part 5b: ServiceLocator vs Dependency Injection Part 6: Commands Part 6b: Wrapping IClientChannel ...
Source Code Part 1: The Bootstrapper Part 2: The Shell Part 3: Regions Part 3b: View Injection and The Controller Pattern Part 4: Modules Part 5: The View-Model Part 5b: ServiceLocator vs Dependency Injection Part 6: Commands Part 6b: Wrapping IClientChannel Alright, so we’re finally here. I could...
Source Code Part 1: The Bootstrapper Part 2: The Shell Part 3: Regions Part 3b: View Injection and The Controller Pattern Part 4: Modules Part 5: The View-Model Part 5b: ServiceLocator vs Dependency Injection Part 6: Commands Part 6b: Wrapping IClientChannel Welcome back to my series on implementing the Model...
Just installed Visual Studio 2010 Beta 2 and the first thing I needed to see was how well the xaml designer worked. More specifically, I wanted to know if design-time data binding worked properly. Well here’s the screen shot. Looks great! The only thing was when I first opened the view instead of the formatted time, it displayed the name of the object in DataContext (CodeCamp.Model.Message). When I changed the binding from {Binding Date, … } to {Binding Path=Date,…} it fixed it. What was really weird was when I changed it back (removed “Path=”) the problem didn’t...
Part 1: The Bootstrapper Part 2: The Shell Part 3: Regions Part 3b: View Injection and The Controller Pattern Part 4: Modules Part 5: The View-Model Part 5b: ServiceLocator vs Dependency Injection Part 6: Commands Part 6b: Wrapping IClientChannel In my last post I addressed regions in the Composite...
Source Code Part 1: The Bootstrapper Part 2: The Shell Part 3: Regions Part 3b: View Injection and The Controller Pattern Part 4: Modules Part 5: The View-Model Part 5b: ServiceLocator vs Dependency Injection Part 6: Commands Part 6b: Wrapping IClientChannel This is the third post in a series of...
Source Code Part 1: The Bootstrapper Part 2: The Shell Part 3: Regions Part 3b: View Injection and The Controller Pattern Part 4: Modules Part 5: The View-Model Part 5b: ServiceLocator vs Dependency Injection Part 6: Commands Part 6b: Wrapping IClientChannel This is the...
Source Code I’m working on a Silverlight scheduling application and wanted to make the DatePicker control from the Silverlight Toolkit look like the program icon on my iPod Touch. The calendar looks icon like a day calendar and dynamically displays the current date. I got the idea when I was looking at the calendar icon on the right-hand side of the DatePicker control. It was actually one of those accidental ideas. The control’s icon looks like a day calendar and displays the number ‘15’ – well the day I was looking at it happened to...
Sometimes instead of binding to a property of the current DataContext you want to bind to the actual DataContext itself. For example, I am using DelegateCommand<T> from Composite Application Library and needed to bind a command to perform an action on the current item in a ListBox. <UserControl x:Name="ViewRoot">
<ListBox ItemSource="{Binding Path=MyCollection}">
<Button Content="Delete" cmd:Click.Command="{Binding ElementName=ViewRoot, Path=DataContext.Delete}
cmd:Click.CommandParameter={??????}...
The World's Most Over-engineered “Hello World” DemoDownload SourceI wanted to build a demo/guidance application for Silverlight that merges everything I want to accomplish in a Silverlight 2 application. These were my goals: WCF integration Design-time data binding Independent, decoupled modules Commanding support I chose to use the Composite Application Library for WCF/Silverlight (aka Prism 2) since it came out of the box with commanding support and a framework for pluggable modules. Prism 2 was developed by Microsoft's Patterns and Practices (PnP) group.I've posted a copy of my solution for anyone who's interested in...
I've been working in WPF for the last month and learning some pretty cool stuff. I really like it. But then I spend a couple days trying to something that would take me 2 minutes in an ASP.NET Web Form and I want to swallow a bullet. I know there is just a learning curve and the more I use it and I'll be able to do it just as quickly. But as much as I love learning new stuff there are days I really long for less new technology to learn.I had a list of items displaying quite nicely...
I have been using XML for internal data formats for many years. Mostly for the purpose of transforming data using XSLT. So while I've been working with XML for a long time, I have never had the need to work with namespaces other than those that were standard with XSLT.But this weekend I had my first real run-in with namespaces and I figure I'll share a bit of what I learned here.I am planning on using Amazon Web Service's S3 service to store what I'm hoping will be a large number of images for a startup I'm working on. In...