In my previous post about the Live Framework and Mesh-enabled apps I described how to create your first project, publish and deploy it to the Mesh and debug using Visual Studio 2008 support tools.
However, that was without taking advantage of any of the Live Framework and Mesh functionalities. In this post that’s exactly what I’ll be doing. The sample application will be storing some data and loading it upon running on the web on or the client (Mesh). To do this we are going to use the Silverlight Toolkit for the Live Framework, this one exists for Silverlight and for client (full) .NET applications. The Live Framework .NET library is one of the toolkits you can use to call the framework, but this is actually a wrapper around the RESTful APIs that can be accessed through HTTP. Because at the base it is all HTTP, any platform can access the framework.
The toolkits that are available today are just extra help so that you do not have to deal with all the HTTP calls. Toolkits that are available today:
Now let’s get to our sample application. To get my data stored and synchronized through the Mesh it is important to get a good look at the Live Framework Resource Model. The base objects in the resource model are MeshObejcts, DataFeeds and DataEntry objects. I must admit I still need to read on further into the SDK documentation and understand correctly when I should use which elements. As I have understood it a MeshObject is the highest element in your application that you would want to share. If my application (instance) can be shared as a whole I will only create one MeshObject. If sub-elements can be shared than each of the sub-elements should be a MeshObject.
For now, I’ll be accessing the DataFeeds property. Nothing more than that for now. So in short, the application will contain a list of Party titles. Yes parties, guess I’m thinking about Christmas wish lists or something :) Please note I have not gone to defining the object model for the application, it shows a simple way how to access the Mesh and feeds directly.
1. First of all since we are using the Silverlight Mesh-enabled web application template in Visual Studio, this contains some base code to load the Mesh application service object.
MeshApplicationService meshApp = Application.Current.GetMeshApplicationService();
// once mesh contents are loaded we get callback
meshApp.LoadCompleted += new EventHandler(meshAppLoaded);
2. The app UI consists of a ListBox, a TextBox and a Button. ListBox is bound to an ObservableCollection of DataEntryResource objects. Each of the Party entries will be stored in a DataEntryResource on the Mesh.
ObservableCollection<DataEntryResource> partyEntries = new ObservableCollection<DataEntryResource>();
3. Upon loading of the Mesh application service object we load the DataFeed in which we store the entries. This DataFeed does not exist upon first call of the application so we create in that case. I’m also inserting a default entry in the list named “My first party”.
private void LoadDataFeed(MeshApplicationService meshApp)
DataFeed partyFeed = meshApp.DataFeeds.Entries.FirstOrDefault (pf => pf.Resource.Type == "Party_DataFeed");
if (partyFeed == null)
//Create the DataFeed
partyFeed = new DataFeed();
partyFeed.Resource.Type = "Party_DataFeed";
DataEntry entry = new DataEntry("My first party");
entry.Resource.Type = "Party_DataEntry";
entry.Resource.Title = "My first party";
//load the collection of DataEntry items
foreach (DataEntry entry1 in partyFeed.DataEntries.Entries)
4. To finish, we create the Button event handler to add an item to the collection of DataEntries.
private void buttonAdd_Click(object sender, RoutedEventArgs e)
MeshApplicationService meshApp = Application.Current.GetMeshApplicationService();
DataFeed partyFeed = meshApp.DataFeeds.Entries.FirstOrDefault( pf => pf.Resource.Type == "Party_DataFeed");
DataEntry partyEntry = new DataEntry();
partyEntry.Resource.Type = "Party_DataEntry";
partyEntry.Resource.Title = textPartyName.Text;
textPartyName.Text = "";
And that’s it. Data in the Mesh, be it on the client desktop or the web.
SketchFlow is a new feature that is part of Expression Blend 3. I’ve had the chance to demo this new feature to quite some people over the last months, and this seems to make sense to quite an array of different profiles: information architects, designers, developers, project managers.
Because just 3 minutes on SketchFlow is really too little to show SketchFlow I’m splitting this feature up into several videos.
In this first video on SketchFlow we introduce the creation of a Silverlight application prototype. SketchFlow projects can be either Silverlight 3 or WPF (Windows Presentation Foundation), from there on you’ll be creating the flow of the application, giving the customer the chance to react on a more interactive form of prototype than you would generally deliver in the form of documents or images.
A SkechtFlow screen is a Silverlight or WPF user control/window, so that means you can add interactivity to it, working some parts out and leaving others in a very “sketchy” way. Check out the below video to see how the application flow can be created using SketchFlow.
The 3 minutes on Blend 3 series:
Quite a few new screencasts and interviews have been added to Chopsticks these last few weeks. Time for an overview of what is new.
Content by Microsoft folks
Last month Thomas Delrue, a Belgian software development engineer at Microsoft Corp visited Belgium and my colleague Philippe Destoop sit down with Thomas for two interviews about the newly announced “Oslo” platform.
Thomas Delrue talks about "Olso" and the "M" modeling language Thomas Delrue, software development engineer at Microsoft Corp, discusses Microsoft's recently announced platform for model driven applications, code named "Oslo" in an interview by Philippe Destoop, Architect Evangelist at Microsoft Belgium & Luxembourg. During the interview they also talk about the "M" modeling language and the "Oslo" Repository, as well as "Quadrant", the tool that allows to build models visually.
“Oslo” demonstration Thomas Delrue demonstrates the "Oslo" repository and the "M" modeling language and "Quadrant". Philippe Destoop, architect evangelist, is the moderator of this interview
Just before leaving for PDC I had the chance to sit down with Craig Spiezle, Director Security and Privacy for Internet Explorer, and discuss the main improvements of IE8.
Interview with Craig Spiezle on IE8 for Developers Craig Spiezle talks about several Internet Explorer 8 innovations of interest to developers related to security and compatibility.
Community created content
Maarten Balliauw, Gill Cleeren and Hans Le Roy submitted new screencasts on ASP.NET MVC, Silverlight 2 controls and IE8.
Using ASP.NET MVC Model Binder This screencast demonstrates how code can be made more maintainable and testable by delegating binding to client data to the ASP.NET MVC model binder architecture.
By Maarten Balliauw
Silverlight Controls Series: Part 1 - Styling Silverlight Controls Since Silverlight controls can be styled to fit any design, it’s vital that you apply styles to your applications in order to keep them maintainable in the long run. In this video, Gill Cleeren explains the best practice to do this.
By Gill Cleeren.
Silverlight Controls Series: Part 2 - Creating Custom Silverlight Controls Apart from styling your controls, Silverlight makes it easy to create custom controls yourself by overriding the entire visual tree of a control. In this video, Gill Cleeren shows you how to do this.
Internet Explorer 8: Qu'est-ce qui est nouveau? (pour utilisateurs) – French only Qu'y at-il de nouveau dans la nouvelle version d'Internet Explorer (IE8)? Nous regardons le nouveau navigateur depuis la persêctive de l'utilisateur. o Aangeraden tagging Internet Explorer 8, barre de commandes, onglets, IE8, accélerateurs .
By Hans Le Roy
Full recordings of the Luxembourg TechDays08 (September 2008)
This September we hosted the Luxembourg TechDays event. A one day event for developers and IT professionals. The six developer sessions are now available for viewing online (note: all content in French).
Trucs et Astuces C# 3.0, VB 2008 au travers de Visual Studio 2008 (TechDays'08 Luxembourg) Cette session commence avec une introduction pas BCEE. Dans le reste de cette session exclusivement orientée code, vous découvrez différentes pistes vous permettant d’augmenter considérablement votre productivité au sein de Visual Studio 2008. Nous construirons pour ce faire, au court de cette session, une application architecturée Software + Service et découvrirons les trucs et astuces disponibles au sein de Visual Studio 2008 tout au long du cycle de vie de développement de l’application phare de cette session. Nous aurons entre autre l’occasion de parcourir : - Customisation de l’IDE Visual Studio 2008 - Multi-Targetting - Overloading d’opérateurs - Codes Snippets, Macros - Éditeur , IntelliSense, Amélioration du débuggeur, ... - LINQ et LINQ to XML - Exploitation des Générics - Windows applications - Web Solution : WCF - ADO.NET data - Refactoring Presented by Gregory Renard
Visual Studio 2008 SP1 - Quoi de neuf? (TechDays'08 Luxembourg) Le SP1 de Visual Studio 2008 et du .NET Framework 3.5 ont été lancés en Aout 2008. Bien plus qu’une simple mise à jour, ces service pack contiennent de nombreuses améliorations et avancées. Plusieurs domaines du .NET Framework sont impactés et seront présentés durant la session; la couche d’accès au données, le développement d’application Windows ainsi que le développement web. Des changements ont également été apportés à l'environnement de développement pour supporter les nouvelles fonctionnalités du .NET Framework 3.5 SP1. Presented by Johan Blais
Le .NET Language Integrated Query (LINQ) Framework (TechDays'08 Luxembourg) Les applications modernes se construisent aujourd'hui sur de nombreux types de sources de données: bases de données relationnelles, documents XML, objets en mémoire, ... Chacun de ces types de sources de données ont des approches très différentes de la sémantique, de leur typologie et capacité, ... tout ceci sans même aborder la complexité de mixage de l'ensemble. Dans cette session, nous aborderons comment Visual Studio 2008 apporte une aide non négligeable au travers d'un modèle de programmation unifié "LINQ". A partir de C# 3.0 ou VB2008, nous observerons comment LINQ nous apporte une modèle fort d'accès aux données de part son Framework et son API (Application Programming Interface) innovante de manipulation des données et requêtes XML. Presented by Gregory Renard
Développer des applications qui combinent WCF, WF et Cardspace en .NET Framework 3.5 (TechDays'08 Luxembourg) « Windows Communication Foundation » (WCF) a été introduit dans .NET 3.0 Framework pour facilité la construction d’applications distribuées. « Workflow Foundation » (WF) pour sa part a également été introduit dans la version 3.0 du .NET Framework pour faciliter l’implémentation des logiques business. Dans la version 3.5 du .NET Framework, de nouvelles perspectives d’intégration entre ces solutions sont possibles ; permettant ainsi une plus grande productivité. Cette session démontrera comment les développeurs peuvent utiliser les puissantes capacités de ses 2 extensions du .NET Framework pour construire des applications orientée service, à long terme et durable, et exposer un workflow comme un service. Cette session expliquera aussi Cardspace, qui fourni une solution basée les standards du marché pour travailler et gérer diverses identités digitales. Presented by Gaëtan Holderbecke and Xavier Pellegrino
Développer des RIAs en Silverlight grâce à Expression Blend et Visual Studio (TechDays'08 Luxembourg) Découvrez comme utiliser Silverlight pour construire de riches applications internet grâce à la puissance des codes .NET et XAML UI. Cette session démontrera, en utilisant le cadre de travail de Silverlight, ses controles, son modèle d’application , son networking stack et ses nouvelles capacités, les atouts de Silverlight pour les cross-browsers et les applications cross-platform de nouvelle génération. Presented by Xavier Vanneste
Développer des Rich Client Applications avec Windows Presentation Foundation (TechDays'08 Luxembourg) Venez découvrir avec quelle facilité il est possible de créer une application business riche en utilisant "Windows Presentation Foundation" (WPF), comment vous pouvez lui donner vie grâce à la puissance ainsi qu’aux capacités étendues de WPF. Et enfin comment on peut ajuster et collaborer autour du contenu, du design, des templates et UI ; Data models, data binding et contrôles (Datagrid, User Control…) s'assemblent pour permettre aux développeurs de créer une interface plus riche et plus dynamique en moins de temps. Presented by Olivier Raulot and Cristovao Figueiredo
My colleague David blogged about support for Windows Phone 7 in PhoneGap released last month. Please find more information and resource below or head off to David’s blog.
Back in September, Microsoft joined Nitobi to announce a Beta of PhoneGap support for Windows Phone Mango, and at the same time committed to continue working with the PhoneGap Open Source project community to help bring full support.
This release includes many new features, and you can find more details here
Last week at MIX11 we announced the next update coming to Windows Phone 7. Joe Belfiore, overseeing Windows Phone Program Management came on stage to address the audience eager for more on Windows Phone. While starting with an update on why some ‘Nodo’ updates are taking longer than expected, Joe then switched to bringing us the new stuff. As a developer, you can start getting up to date with the latest capabilities by watching or downloading the sessions covering the new APIs and capabilities given during MIX11.
Customer Feedback for Windows Phone Developer through UserVoice The WPDev UserVoice forum is now available to gather user feedback from developers around on the application platform (APIs, runtimes, and controls) using Silverlight and XNA. Make your voice heard too: http://wpdev.uservoice.com/forums/110705-app-platform
My personal note on the keynote and new features: sitting at the keynote I heard lots of great exciting “wow… amazing…” around me. Attending the keynote in person was a fantastic experience. Developers are very excited about new possibilities the 1500+ new APIs coming with “Mango”. For myself, it’s hard to choose the absolute favorites. But if I must, I guess the new features coming to the Live tiles are a personal favorite. One of the things that I love about the use of WP7 is the start screen and what you can do with Live tiles. So having more control over them will only enhance how the start screen gets more personal and comes even more to live. I must admit Silverlight 4 support, Live Agents, SQL CE support and such are also very welcome.
At the conference there was also a Windows Phone booth (of course ), they had a very nice apps wall with tiny icons of the thousands of apps: THANK YOU DEVELOPERS.
Oh, and Angry Birds is officially coming to Windows Phone 7. Are you concerned? I know some folks will be happy.
The new developer tools, codenamed “Mango” are coming next month in May. Get ready today!
There is a free extension for Visual Studio available for a few months already, which I only now found out through a newly released video on Channel9: Visual Studio Toolbox: JScript Editor Extensions.
>> Download the extension Watch the Channel9 video
>> Download the extension Watch the Channel9 video
Note: if you’re looking for more or extending these extensions you can start by viewing or downloading the source code from these extensions from Codeplex.
The Microsoft Web Platform Installer (Web PI) is a great tool to automate the installation of web developer tools, framework, web server and database. In case you haven’t see this you I encourage you to take a look at http://www.microsoft.com/web. This is also something we showed during the REMIX 2009 keynote so you may want to have a look at the video for part 1 of the keynote.
Installing the platform and the tools is one thing, this includes the full Microsoft stack with IIS, ASP.NET but also PHP 5.2. But next to installing the stack it also offers you the ability to install open source web applications like DotNetNuke, BlogEngine.NET, Umbraco but also PHP applications such as Drupal, Moodle, Wordpress and many others. The application available through the Web Application Gallery (WAG) are all open source and were submitted to the tool. You can also submit your own open source application to be part of the gallery. This requires your application to be packaged using the Web Deployment Tool.
While you can use the Web Deployment Tool used by the Web PI to package and easily deploy your own web applications you don’t get the nice UI given through the Web PI tool.
The good news is now since the Web PI v2 RTM you have some interesting options. One of these options is adding custom XML feeds with your own non-public packaged applications or even extra products (choose the Options link). Katheryne has two nice postings on the IIS.Net site around this feature: “Web PI Extensibility: Custom Feeds – Installing Custom Products” and “Web PI Extensibility: Custom Feeds – Installing Custom Applications”, worth checking out!
Again, you don’t need the Web PI to deploy your own applications and are perfectly able to use the Web Deployment Tool separately but if you like the ease of use of the Web PI tool this is a perfect solution.
Back from Tech-Ed EMEA developers, running from 10 to 14 November 2008 in Barcelona. It was a very interesting week in turns of content but also in terms of meeting up with lots of interesting people. And proud to be a Belgian at this conference: besides Hans Verbeeck as the business owner we had a Belgian winner at the Speaker’s Idol: Kurt Claeys.
Congratulations to Kurt, looking forward to his first session at TechEd next year in Berlin!
This year it was my first time at the Silverlight “Ask the Experts” booth where I had the pleasure to meet with some peers of mine, and MVPs that were ready to answer questions from attendants. Having booth duty did not prevent me from following some of the sessions. I especially enjoyed getting even more PDC content like Angus Logan’s session on Mesh enabled web apps, Windows 7, and David Chappell’s session on Geneva (codename for Microsoft’s identity and claims based framework). Non-PDC content like Bob Beauchemin’s sessions on SQL Server 2008 or Stephen Forte’s interactive session on data access were some of the other sessions I followed.
Opening keynote was presented by Pierre Liautaud, Vice-president Western Europe for Microsoft and Jason Zander was the overall keynote speaker.
Taking place just one week after the Professional Developer’s Conference (PDC) in L.A., it’s not an easy task to bring more new stuff to the event. However, without leaving behind the importance of PDC the keynote did present us with quite some new information on VS2010.
Jason Zander did a great overview of some of the new things to be found in Visual Studio 2010, and included lots of demos which is really what any developer wants to see!
Visual Studio 2010 highlights:
Check it out: download the Visual Studio 2010 and .NET Framework 4.0 CTP here.
In addition to VS2010 goodness, PDC content was not forgotten. The event had a special PDC Highlights track bringing the best of PDC to Barcelona. I thought this was a very useful decision to bring the PDC content to TechEd. Waiting one year would create too large a knowledge gap. This track included sessions on Windows Azure, Oslo, Live Framework and Windows 7.
Finally, having the possibility to meet up with a lot of Belgian developers and exchanging views and ideas was another highlight for me. Thanks all for joining the conference and hope to see you around at another event in Belgium or at TechEd in Berlin next year!
In this edition we look at how to add content to SketchFlow Silverlight application screens. We look at the Sketch styles that are supplied in Expression Blend so that the UI of your screens is making clear to your customer that this is a prototype and not a finished design. This video is available in three languages.
3 minutes on Expression Blend 3: SketchFlow Adding Content
Also in this series:
SketchFlow projects can be either in WPF of Silverlight. Let’s focus on a Silverlight version here and look at the differences of a SkechFlow project between other ‘normal’ Silverlight projects.
A Silverlight SketchFlow project (solution) consists of two projects on file:
Silverlight project containing the SketchFlow player
Silverlight library project referenced by the player project
The SketchFlow player is set as the RootVisual of the Silverlight application (in App.xaml.cs):
private void Application_Startup(object sender, StartupEventArgs e)
this.RootVisual = new Microsoft.Expression.Prototyping.Workspace.PlayerWindow();
When you add screens, all this is done in the library project since the base Silverlight (SketchFlow) project calls these screens automatically.
Let’s review the main task panes and elements we use in Expression Blend when working on SketchFlow projects.
Note: Your own workspace might differ from this one since all task panes can be moved around or hidden as you wish.
A project reviewer or stakeholder can give feedback by adding comments through the SketchFlow player. When importing the feedback into Expression Blend, the feedback file itself is imported into the “Feedback Files” directory in the screens project.
Using the Feedback pane you can choose which feedback file details to view and whether or not ink feedback should be overlaid on the screens.
After a few versions of feedback, you might want to clean out feedback files. You can do this by simply deleting the physical file from the Feedback Files directory.
When the application is ready to be shown to the stakeholders you package it and distribute it.
For a Silverlight application this can be a directory that you host on a web site, making the application available online. Another option is to create a zip file with the package and transfer that to the stakeholders.
If you .zip the whole directory and send it to end users make sure the full directory contents are unzipped before they run the application.
To package the application from within Expression Blend choose File > Package SketchFlow project and choose a destination folder. The end user can access the TestPage.html to load the project.
In this post you’ll find our top tips for going through Windows Store developer registration, based on the learning’s we’ve had these past few months as we work with Belgian developers to get ready for Windows 8 launch.
Store Portal Dashboard: https://appdev.microsoft.com/StorePortals/ Logging in and accessing the Store Portal, learn about Strong Authorization and account security: http://msdn.microsoft.com/en-us/library/windows/apps/jj553414.aspx
The registration process is a seven-step flow in which the following elements are important:
Before your apps can go through certification your account needs to be validated. Depending on the account type, there are several steps to be completed.
Both Company and Individual verification is done through a withdrawal on your credit card, which is then reverted directly. The transaction number or amount is used to verify your account. Go to the Dashboard > Subscription page to go through verification.
Here’s a good overview of where to find the account status.
Under the “Profile” link, check the status of your account:
1 – Developer identity validation – Must be set to “Authorized” before any apps can be certified. (Only Company). Vetting is done by an external party “Symantec/GeoTrust” that will send an e-mail to the Approver e-mail you entered in the process of registration. Make sure Spam folder is checked and followed up. You can find more information on the types of proof needed for Belgian accounts through Symantec knowledge base: https://knowledge.verisign.com/support/ssl-certificates-support/index?page=content&actp=CROSSLINK&id=SO17796
2 – Payout account: the status of your bank account information being complete. Must be complete if you are certifying paid apps, or in-app purchase. (Company and Indidual)
3 – Tax profile must be set to “Valid” if you are certifying paid apps, or in-app purchase. (Company and Indidual) Important to note is that the Tax Profile section should be filled in by a company representative, for example the CEO or Financial director.
If you run into an issue with your developer registration, there are several support options available including community forums and the official support team ready to help you (through chat or e-mail).
During TechDays Belgium 2012 two weeks ago, Scott Guthrie announced the Beta release of ASP.NE MVC 4 slated for that same week. Since February 16th you can now download ASP.NET MVC4 Beta. Interesting to note is the availability of a Go-Live license with this release. In other words, if you feel like using these bits on production you now can!
A few important updates and features are part of the Beta:
WebMatrix is a free web tool from Microsoft. In one sentence: it’s an all-in-one tool you can use to download, install and tweak and publish a website based on an open source app like WordPress, Umbraco, Drupal, … OR program your own site with an easy-to-use Razor syntax and ASP.NET Web Pages. Now that’s a mouthful!
The beta version brings us a load of new, useful features to build sites even faster. I highly recommend watching the recording of the BUILD conference session: “WebMatrix: uber geek in designer clothes”. A pick out of the new features:
This is Beta, in that context there is no automated installation procedure foreseen so make sure you read the installation notes. It also means that you might have to manually uninstall previous versions. Other than that you should not be having issues with other programs. Note: if you prefer to continue using the released version 1.0, you can download it here.
Download and try it out for yourself:
Recommended article: check out how Scott Hanselman is using WebMatrix and ASP.NET Web Pages with Razor syntax to upgrade an old site: Hanselminutes.com: Rewriting a 5 year old VB.NET WebForms application as an ASP.NET Web Pages application with Razor
Talk to us! Let the WebMatrix team know what you think should be added to the product at https://webmatrix.uservoice.com/forums/128313-webmatrix-suggestions
Today developers can start with the final migration of their Beta Windows Phone 7 code to RTM, as today the developer tools hit RTM version. This means that as of now code can be developed against the RTM version, with the final step before submitting your app to the Marketplace. The Windows Phone 7 Marketplace will start accepting submissions early October, in the meantime it’s a good idea to get registration done as this can take some time to get all required documents through.
Download the RTM tools: Windows Phone Developer Tools package is a free single download containing all of the tools that developers need to create apps and games for Windows Phone 7: Visual Studio 2010 Express for Windows Phone, the Windows Phone Emulator, Expression Blend 4 for Windows Phone, and XNA Game Studio 4.0.
Silverlight Toolkit for Windows Phone
A special version of the Silverlight Toolkit to be downloaded separately from CodePlex contains these features, amongst others:
Check out this video with Charlie Kindel and Scott Guthrie celebrating the final version of the tools, notice how a few of the upcoming apps are being previewed:
Also recommended: Windows Phone Developer blog post by Brandon Watson on the final tools release.
And don’t forget the Belgian 5K Contest! If you’re in Belgium, don’t forget you still have about two weeks to register for the Windows Phone 7 5K Challenge.
In this video we continue on where we left off in the previous video: after letting the customer or reviewer give feedback on our application, we now see how to import feedback files into Blend. We also see how this feedback can be shown in the different screens and how Blend informs you about out of date feedback.
3 minutes on Expression Blend 3: SketchFlow Player