ASP.NET AJAX Team Blogs

Browse by Tags

All Tags » Silverlight (RSS)
Fluent API for .NET RIA Services Metadata
.NET RIA Services relies heavily on metadata annotations for expressing intent beyond what can be inferrd via convention. For example, validation rules on entities and members can be declared as annotations, which then enable a variety of consumption scenarios. We also have metadata for describing model aspects in DAL-agnostic fashion, and hints for automatic UI-generation. What we have today is just a first step. The general design we're enabling is actually quite flexible. For example, a number of developers want to have metadata specified external to their code, for example in XML files or in a database. Some don't like attributes, and have asked for a fluent interface instead. In RIA Services, we wanted to create a consistent API...
Dialogs and ViewModel - Using Tasks as a Pattern
The ViewModel/MVVM pattern continues to gain popularity, with a blog post showing up every so often, and with tweets and retweets popping up even more often :-). At the same time, there are some interesting topics beyond the core pattern that continue to fuel experimentation. A big one amongst those is how should applications use dialogs when using the view model pattern. The crux of the problem is the desire to keep the view model independent of UI concerns, and ensure it can be tested in a standalone manner, but that often comes to odds when you want the view model to launch a dialog, and/or do some work after the dialog is closed. The most recent version of Silverlight.FX (v3.2) that I published earlier this week, addresses this scenario...
BouncingPlane Behavior for Silverlight
Time for a brief but fun post... some time back Tim Heuer posted the Silverlight 3 bouncing plane gratuitous demo . Click an element, and the nearest corner would bounce backwards and forwards as it comes back to rest. Tim had the code to setup the storyboards, and handle the mouse interaction in code-behind. I look at it, and immediately see a reusable component (even if it is a gratuitous one), or more specifically a behavior, that encapsulates all the logic, and can be attached declaratively in XAML to one or more elements simply without needing any code-behind logic. So I created one such behavior. I used this behavior in my TwitterBug sample at TechEd recently, and thought it could use a dedicated blog post. :-) Here is a screenshot, which...
LINQ to Bing, Silverlight and .NET RIA Services
In my last post, I described BLinq, or LINQ to Bing , an API that allows you use LINQ to access the Bing search results (ok, so perhaps BLinq was not the best of names, given prior art on that name ... but anyway). I also alluded to .NET RIA Services integration, which I'll cover in this installment. In fact, IQueryable and the LINQ pattern lie at the very heart of .NET RIA Services, in allowing developers to access data in a consistent manner not just on client or server but across client and server, and enabling code to compose queries naturally. If you haven't read the intro post, please take the few minutes to check out the LINQ snippets to get a general sense before continuing on. You might use Bing in your rich internet application...
TechEd South Africa Slides and Code - .NET RIA Services and ViewModel
This is a quick blog post to share slides and demos from my presentations at TechEd in South Africa. Feel free to post questions here... From the talk on ViewModel and Application Patterns for Silverlight... The app I built was a mini-Twitter client named TwitterBug. The demo covered the following: The ViewModel pattern using data-binding and commanding Behaviors as a mechanism to encapsulate repetitive view functionality Implementing an IoC container and dependency injection using MEF EventAggregator pattern to facilitate view model to view model communication Designer/developer workflow Unit testing of view models Using .NET RIA Services and building a DomainService that uses LINQ to Twitter as its DAL .NET RIA Services… For this session I...
.NET RIA Services Twitter Pitch
There is the well-known elevator pitch - can you describe something while riding in an elevator? Now we have the twitter pitch - what can you describe in 140 characters? Here was a question on twitter from yesterday: Can someone explain in 140 characters or less what .Net RIA Services is? And Brad tweeted his response: @ hotgazpacho How is this: .NET RIA Services makes writing n-tier silverlight apps much easier! @ nikhilk do you want to take a shot? So I did, with my tweet : @ hotgazpacho # RIAServices simplifies RIA & Web app development by prescribing patterns for writing app logic & providing out-of-box app svcs Now if I had a little more time, in the case of an elevator pitch, say we got out on the same floor and were continuing...
Silverlight and Making a Statement on Twitter
A little bit of weekend fun with Twitter and your avatar image... using Twibbon to spread the Silverlight "Light up the Web" message... [ Full post continued here... ] Read More...
Silverlight.FX Updated for Silverlight 3
First build of Silverlight.FX on top of Silverlight 3 with updates/enhancements ready - new features include ApplicationContext class, new Float/Spin3D effects, and Back/Forward integration. [ Full post continued here... ] Read More...
Silverlight 3 + .NET RIA Services July Preview
Silverlight 3 is here!!! The Silverlight platform has come a long way (in a relatively short period of time) from a scriptable graphics and media runtime into a full-fledged platform for developing Rich Internet Applications, using managed code, the goodness of application frameworks and controls, and great tools such as Visual Studio and Expression. In my MIX ’09 post , I listed the following: Graphics and Media Capabilities - GPU support, perspective transforms, pixel shader effects, media smooth streaming, new codecs, including ability to write your own, better text rendering, etc. Data - Lots of new data controls (such as DataForm), data-binding improvements, and validation. Application model - ability to use library cache for reducing xap...
ViewModel with MVC/Navigation in Silverlight
I've been writing about ViewModel (aka MVVM) pattern ( here , here , here and more) and implementing it in Silverlight.FX for quite some time now, and it continues to be an exciting area for further thinking, and prototyping. This time around I want to cover how ViewModel and MVC fit together in an application at the same time. I have put together a set of navigation features into Silverlight.FX: a Page base class, a PageFrame control, and a Navigate trigger action. The PageFrame class by default maps URIs to Page types automatically, but at the same time supports plugging in an MVC PageLoader that maps URIs to Controllers and Actions, and maps ActionResults resulting from those actions into visuals or Pages. Specifically the controller...
More Posts Next page »