Tag Archives: Silverlight

My CRM 2011 Validation Framework

I’ve been working on a validation framework for Dynamics CRM 2011.  I’ve published the first cut of the code.  It’s a little rough still, but I’ve been promising the sample to a few customers so I wanted to get the first working version out there.  Right now, it only supports regular expression validation.  However, if you read the home page, you will see how you can get involved in shaping the future of the sample.

http://bit.ly/dkdtcrmval

Here’s a video walkthrough of the functionality.

https://channel9.msdn.com/posts/Dynamics-CRM-2011-Validation-Framework-Setup-and-Configuration-Walkthrough/player?w=512&h=288

I’ll also be recording a “getting the code to build” and code walkthrough video.  For now, if you want to try to get the code to build, ensuring you have NuGet installed and the Async CTP should do it.  However, I haven’t had time to test it on a clean machine so the “works on my machine” disclaimer applies. 

@devkeydet

PubSec Dev Dinner on External Data and Services with SharePoint 2010

My old team is having a developer dinner tomorrow night titled Developing SharePoint 2010 Solutions Using External Data and Services.  See here for more details at http://bit.ly/kPUq5n.

“…

What you will learn

SharePoint 2010 allows developers to work with both internal and external data using Business Connectivity Services (BCS), Excel Services, Access Services and custom WCF services. During the presentation we will discuss and demonstrate several common usage scenarios.

  • Bringing SQL Server data to SharePoint using BCS
  • Sharing Excel Data using PowerPivot for SharePoint
  • Publishing Access Database applications to SharePoint
  • Sharing secure data using BCS and the secure store service
  • Creating Silverlight Using WCF RIA services for SharePoint

…”

Help make Microsoft developer technologies better!

Follow devkeydet on Twitter

Ron Jacobs just blogged about how .NET developers can provide feature feedback and vote on WCF/WF features.

http://blogs.msdn.com/b/rjacobs/archive/2011/04/14/how-you-can-make-wf-wcf-better.aspx

Many Microsoft product teams are doing this nowadays. It still surprises me how many .NET developers don’t realize these feature voting sites exist. In addition to WF/WCF, I am aware of these:

http://wpdev.uservoice.com/forums/110705-app-platform

https://windowsphone7community.uservoice.com/forums/84435-feature-feedback

http://data.uservoice.com/forums/72027-wcf-data-services-feature-suggestions

http://data.uservoice.com/forums/72025-ado-net-entity-framework-ef-feature-suggestions

http://dotnet.uservoice.com/forums/40583-wpf-feature-suggestions

http://dotnet.uservoice.com/forums/4325-silverlight-feature-suggestions

http://dotnet.uservoice.com/forums/87171-visual-basic-content-requests

http://dotnet.uservoice.com/forums/57026-wcf-ria-services

http://www.mygreatwindowsazureidea.com/pages/34192-windows-azure-feature-voting

http://www.mygreatwindowsazureidea.com/forums/35889-microsoft-codename-dallas-feature-voting

http://www.mygreatwindowsazureidea.com/forums/44459-sql-azure-data-sync-feature-voting

http://www.mygreatwindowsazureidea.com/forums/34685-sql-azure-feature-voting

http://www.mygreatwindowsazureidea.com/forums/100417-sql-azure-reporting-feature-voting

http://www.mygreatwindowsazureidea.com/forums/40626-windows-azure-appfabric-feature-voting

http://www.mygreatwindowsazureidea.com/forums/103009-windows-azure-code-samples-voting

http://www.mygreatwindowsazureidea.com/forums/103403-windows-azure-content-voting

http://aspnet.uservoice.com/forums/41199-general

http://aspnet.uservoice.com/forums/41201-asp-net-mvc

http://aspnet.uservoice.com/forums/41202-asp-net-webforms

http://aspnet.uservoice.com/forums/50615-orchard

http://aspnet.uservoice.com/forums/100405-performance

http://aspnet.uservoice.com/forums/41233-visual-studio-performance-feedback

Let me know in the comments if I’ve missed any.  I’ll add them.

Code Coverage for Silverlight and Windows Phone

As part of building my WP7 app, I spent a fair amount of time trying to get code coverage working for my unit tests. I tried a number of different approaches including using the Silverlight Unit Test Framework and NUnit + dotCover. I finally landed on an approach that worked for me using the unit testing capabilities in Visual Studio 2010. Since this is a much confused topic with very little info on the web on how to successfully get working for Silverlight/Windows Phone apps, I published a screencast on the subject.  I hope you find it useful.

Direct link:

https://channel9.msdn.com/posts/Code-Coverage-for-Silverlight-and-Windows-Phone-ViewModels

From http://en.wikipedia.org/wiki/Code_coverage:

"Code coverage is a measure used in software testing. It describes the degree to which the source code of a program has been tested."

In this screencast, you will learn how to get code coverage for your Silverlight and/or Windows Phone ViewModels through unit testing.  You can learn more about code coverage in Visual Studio 2010 from:

http://msdn.microsoft.com/en-us/library/dd537628.aspx

Get Microsoft Silverlight

San Francisco, Open 311, Silverlight and Windows Azure

“City of San Francisco, CA has launched their Open 311 solution called HeyGov! for San Francisco .  HeyGov! is a SaaS (Software as a Service) offering from Microsoft Partner, ISC, that provides a new and engaging way for citizens and governments communicate more effectively in the Web 2.0 era.  

The service requests are captured from device-centric applications or entered by city’s 311 staff into their existing CRM (Customer Relationship Management) system, exposed via an API based on Open 311 standards and visualized via a rich user-interface built with Silverlight 4 and Bing Maps. Built and hosted on the Windows Azure platform, the HeyGov! solution also takes advantage of virtually unlimited storage and processing power of the cloud and provides the ability to quickly address service requests and implement updates even during peak times.”

More details here…

 

Open Government Data and Bing Map Apps

The Bing Maps team is running a King of Bing Maps contest.  Chris Pendleton just published a blog post on Bing Map App Development Resources over on the Bing Maps blog.  If you aren’t familiar with Bing Map Apps, they are mini applications you write in Silverlight that become part of the Silverlight version of Bing Maps.

http://www.bing.com/maps/explore

You have to submit your app for approval.  Approved apps show up in the Map Apps gallery:

image

You bring up the Map Apps gallery by clicking the “MAP APPS” button in the left pane of the Bing Maps UI:

image

Map Apps are a great way to visualize open Government data that has the necessary location information. So far, I haven’t seen many map apps do this other than the Bing Health Maps application:

image

I’m keeping my fingers crossed that some of the apps submitted will use publicly available Government data as the source for Bing Map Apps.  Will you be the person to submit one and win?  I hope so.

Don’t know where to get publicly available Government data? You can find a few over on the producers page of http://odata.org as well as http://data.gov.  Most of the Government OData services on the producers page of http://odata.org use the OGDI starter kit created by my team.  If you are a Government organization that wants to make your data publicly available on the internet through an OData service, then OGDI is a great way to get started.

Tanagram Partners: Making multi-touch easier with touch.codeplex.com

digg_url = “http://blogs.msdn.com/devkeydet/archive/2010/04/23/tanagram-partners-making-multi-touch-easier-with-touch-codeplex-com.aspx”;digg_title = “Tanagram Partners: Making multi-touch easier with touch.codeplex.com”;digg_bgcolor = “#555555”;digg_skin = “normal”;http://digg.com/tools/diggthis.jsdigg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined;

Our Ch.9 Interview with Tanagram Partners on http://touch.codeplex.com was published.  Check it out!

http://bit.ly/Ch9TanagramTouch

“The APIs in WPF4 plus the Surface Toolkit for Windows Touch make building common touch scenarios easy. However, implementing many of the same touch scenarios using WPF3.5SP1 or Silverlight 3/4 involves writing a fair bit more code. Furthermore, the touch APIs across WPF4, WPF3.5SP1, and Silverlight are different.

The goal of this project is to simplify building common touch scenarios when using WPF 3.5 SP1 or Silverlight 3/4 by using Expression Blend Behaviors to provide a consistent way to implement these scenarios across WPF & Silverlight. Expression Blend Behaviors can be used within Visual Studio without a dependency on Expression Blend by downloading the Expression Blend 3 SDK. You can also find more Expression Blend Behaviors at http://expressionblend.codeplex.com/ and http://tinyurl.com/ExpressionGalleryBehaviors.

Go to http://touch.codeplex.com/ to learn more about this project.  Go to http://tanagrampartners.com/ to learn more about Tanagram Partners.”

Don’t miss the Windows Phone 7 developer dinner tonight!

digg_url = “http://blogs.msdn.com/devkeydet/archive/2010/04/21/don-t-miss-the-windows-phone-7-developer-dinner-tonight.aspx”;digg_title = “Don’t miss the Windows Phone 7 developer dinner tonight!”;digg_bgcolor = “#555555”;digg_skin = “normal”;http://digg.com/tools/diggthis.jsdigg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined;

I was originally planning on presenting, but you’re in for a treat!  Pete Brown will be presenting.  This is sure to be a fun one.  Details here:

 http://blogs.msdn.com/publicsector/archive/2010/04/01/microsoft-developer-dinner-series-for-partners-overview-of-the-windows-phone-7-series-application-platform.aspx