Silverlight

There are 16 entries for the tag Silverlight

MVVM: Going it alone

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

MVVM with Prism 101 – 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 I wasn’t originally planning on a post specific to this topic, and there is likely some rehashing...

MVVM with Prism 101 – Part 6: Commands

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

MVVM with Prism 101 – Part 5b: ServiceLocator vs Dependency Injection

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

MVVM with Prism 101 – Part 5: View-Model

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

MVVM with Prism 101 – Part 4: Modules

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

Visual Studio 2010 Beta 2: Xaml Designer Surface With Binding

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

MVVM with Prism 101 – Part 3b: View Injection and the Controller Pattern

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

MVVM with Prism 101 – Part 3: Regions

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

MVVM with Prism 101 – Part 2: The Shell

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

MVVM with Prism 101 – Part 1: The Bootstrapper

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

Silverlight/WPF: Customizing the DatePicker Control

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

Xaml: Binding to the current DataContext

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={??????}...

Prism for Silverlight 2: Taking ‘Hello World' to a Whole New Level

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

Visual Studio Testing: Code Coverage Property Window Crashes

Problem: If you are using Visual Studio testing tools and you open your testrunconfig file to update or turn on code coverage it closes/crashes immediately. Workaround: If your solution contains a Silverlight project (not Silverlight Class Library, these are ok for some reason) or a WSSF project (Web Services Software Factory) you can unload the project (right-click project in Solution Explorer, select “Unload Project”). Once you have done this your code coverage will work and you can open the property window for Code Coverage in your testrunconfig file. Tags: Unit Testing, Visual Studio 2008 SP 1, Silverlight

Silverlight and Prism: Decoupling the WCF Client Proxy

I'm in the process of creating the world's most complex “Hello World” Silverlight application. Hopefully, for once, I'll see it through to the end and also post the source and an insightful blog entry to help everybody who's struggling to do the same. Anyone who follows my blog knows that I don't always follow through on a series to the end. But, “I can dream can't I?”. Anyhow, I've taken the recent release of Prism v2, which introduced Silverlight support, to dig in and get to know both Prism and Silverlight. As background, I have one production WFP application under...

 

 

Copyright © Mark J. Miller