Tag | MSDN Posts

Some of you may have come across this helpful blog post recently, discussing when the garbage collector (a/k/a the GC) runs on Windows Phone 7 devices. Anyone who has programmed in XNA for the Xbox 360 before knows the GC well. For those of you new to XNA, there are several tricks and tips for slaying the evil GC monster that eats frames. This applies to Silverlight apps too, though since Silverlight does quite a lot for you automatically, there’s only so much control you have. First, you must leave ...
In this Issue: Tony Champion, David Poll, Ben Gracewood, Ryan Alford, Willem Meints, Nokola(-2-), and Deborah Kurata. Shoutouts: This is pretty cool-- 10 years of MSDN Magazine in a Silverlight Pivot Found this via Catherine Russell -- MSDN Virtual Labs Just for those that haven't seen it already, there's a page up on MSDN containing Code Samples for Windows Phone From SilverlightCream.com: Messaging in Silverlight with MVVM Light Tony Champion sings the praises of Laurent Bugnion's MVVM Light, and ...
El primer paso a completar es el tener una cuenta en Azure, hay que tener muy claro que esto representa algo que va a significar en costo y cargos por utilizar los servicios. Lo que haremos es ir a www.azure.com . Veremos una página como esta El siguiente paso es acceder a la cuenta de la siguiente manera, haciendo click en Account llegamos a la siguiente página… 1. Si ya se tiene cuenta en alguno de los servicios, pues se hace click en las opciones de la derecha. 2. Si no se tiene cuenta, entonces ...
In this Issue: Tony Champion, Vikas, Larry Larsen, Dimitris - Ilias Gkanatsios, Gergely Orosz, András Velvárt, Rishi, John Papa, David Rousset, David Anson, and Ozymandias. Shoutout: The Swiss MSDN Team Blog announced “Building a Newsreader Application using Silverlight for Windows Phone 7” Hands-On Lab – Now updated for July BETA Developer Tools Laurent Bugnion posted an MVVM Light Hotfix for Windows Phone 7 developer tools beta Fons Sonnemans posted a video of his WP7 game Sudoku for WP7 on YouTube... ...
Technorati Tags: asp.net Welcome to the MSDN Virtual Labs! Quickly evaluate or learn how to build great applications for Windows and the Web through a series of guided, hands-on labs which can be completed in 90 minutes or less. The best part is, the MSDN Virtual Labs don’t require any installation and are available to you immediately for FREE. Start by selecting the lab you’re interested in from the list below. http://msdn.microsoft.com/e... ...
In this Issue: Ian Walker, Delordson Kallon, Anton Polimenov, Gill Cleeren, Tau Sick, Colin Eberhardt, Kunal Chowdhury, Jag Reehal, Rob Eisenberg, Shawn Wildermuth, Alex Yakhnin, Slobodan Pavkov, and Deborah Kurata. Shoutouts: Jeremy Alles has an MVVM comparison chart up that's very complete: MVVM Frameworks Explorer updated be sure to let him know if something is missing No discussion or code, but this demo code shares between Silverlight and WP7: Shove HalfPenny (Shove Ha'penny) New and untested: ...
In this Issue: jbaird, Sl.ayer(-2-), Yochay Kiriaty, and René Schulte. Shoutouts: Silverzine announced a contest to get an MSDN subscription: Competition Time!!!! Michael Washington and a crew of other folks have another giveaway going: Get a Free MSDN Ultimate subscription SilverlightCream has a wp7dev page up that just lists the wp7dev posts tagged: wp7dev Tagged Articles ... this is the same as searching for wp7dev, but you can just save the link... you probably won't need this in a couple weeks, ...
A couple of years back I was closely involved with helping developers take their investments in VB6 forward (I run http://blogs.msdn.com/goto100 for a time which still has great stuff in its archives). Those with sharp eyes will have noticed that the (IMHO rather poor) Visual Basic Upgrade Wizard is no longer part of Visual Studio as of Visual Studio 2010. My recommendation has always been to look to the partners for great tools to help with the grunt work of moving the code – but all these tools ...
Technorati Tags: Sandcastle,.NET Photo credit: cynwulf I'm of the opinion that in-line comments are often a "code smell", but if you're developing a framework or class library that you want others to use, .NET XML comments on public classes and members used to generate documentation can be very useful. The tool for building that documentation is Sandcastle. According to its CodePlex site, "Sandcastle produces accurate, MSDN style, comprehensive documentation by reflecting over the source assemblies ...
The AllowPartiallyTrustedCaller... (affectionately referred to as APTCA from here on out), is one of the aspects of the security system that most frequently trips people up when they run into it. Lets look at a typical scenario where I might run into an issue with APTCA, and then we'll be able to understand what it is and what it does. Lets say I'm writing a class library to be used by many applications. Following the standard library design guidelines, I've strongly named my library, and ...
I've attended Australian Remix10 and below is a list the points, that I've learned and/or want to read more about. The materials of US MIX10 conference are here http://live.visitmix.com/ Windows Azure ( pronounced [azh-er] http://dictionary.reference... - sounds great from hosting costs/redundancy, but how much work is required to change existing asp.net application with SQL backend to support Azure. http://www.azuresupport.com... ...
In this Issue: Sl.ayer, Emiel Jongerius, Andrea Boschin, KunalChowdhury, Charles Petzold, Kathleen Dollard, Jag Reehal, Saschac, Versant, Karl Shifflett, and John Papa. Shoutouts: Michael S. Scherotter reported an update: Word to XAML Converter Updated for Word 2010, WPF4 and Silverlight 4 The Silverlight Team Blog announced Microsoft, NVIDIA and iStreamPlanet Stream NASCAR in 3D The Silverlight Team Blog also announced Silverlight and Wimbledon. Game, Set and Match SilverlightShow has announced ...
Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} Design Time Formatting of ...
I’ve gotten a chance to present at MSDN Event in Tampa, FL on 6/30 a session called “Windows Phone 7 Development Overview.” As promised - here are the contents of the resources slides. Resource slide: http://developer.windowspho... http://windowsteamblog.com/... http://channel9.msdn.com/le... http://blogs.msdn.com/ckindel http://blogs.msdn.com/ptorr @wp7dev http://delicious.com/chrisk... http://www.reddit.com/r/wp7... Call to Action slide: Watch the ‘Windows ...
In this Issue: Ben Hodson, Marcel du Preez, Karl Shifflett(-2-), Rishi, Chris Koenig, Adam Kinney, Xianzhong Zhu, Jeremy Likness, and CrocusGirl. Shoutouts: Victor Gaudioso posted an inteview: Checkout my Interview with Bytes on MSDN (Microsoft) The Silverlight Web Services Team poses this question: How can we make WCF support in Silverlight better? ... read and give feedback in the comments. Timmy Kokke has announced the opening of a new XAML resource site to bookmark: XamlResource.com Chris Bowen ...
I’ve been answering this question over and over about TextBox validation on the MSDN forums. I wanted to post it on my blog as a point of reference for future users. Basically the question is, I have a textbox and want to restrict numeric values or alpha only. I’ve seen so many version of this involving Regular Expressions to some crazy alpha/numeric array searches. Below is the method that I am using in several production apps as well as community apps. I hope this helps the people on the MSDN forums ...
Technorati Tags: CodeCast,CODE magazine I really enjoyed listening to the June 18th episode of the "CodeCast" podcast: http://www.code-magazine.co... Ken Levy, Markus Egger and Rod Paddock reminisced about the 10 years that have passed since Markus and Rick Strahl came up with the wild idea of branching out from the software business to magazine publishing. CODE has by far been the most useful magazine for me during the past 10 years ...
Normal 0 false false false EN-US ZH-CN X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; ...
Innocent looking things can make a huge difference. One of the dark arts a good programmer should master are regular expressions. You can parse complex data with them very quickly but the syntax of Regular Expressions looks like black magic. At MSDN there are a lot of well documented examples online which is useful when you have forgotten how this quantifier or that grouping expression does work. There is also some advice on performance which can be very helpful in specific occasions. When it comes ...
This week I had cause to check the rule on event log uniqueness. I was aware that only the first 8 characters were treated as unique. Did this rule still apply or did Windows Server 2008 relax the rule? I looked up my FAQ on forums at http://forums.asp.net/p/133... and found the catchall MSDN forum at http://social.msdn.microsof... You can see the thread of my question at: http://social.msdn.microsof... ...
Normal 0 false false false EN-US ZH-CN X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; ...
When I was working on the TalentOn project (Promotion in MSDN Chinese) I was asked to implement a functionality that makes the top menu items highlighted when the currently viewing page was in that section. This might be a common scenario in the web application development I think. Simple Example When thinking about the solution of the highlighted menu items the biggest problem would be how to define the sections (menu item) and the pages it belongs to rather than making the menu highlighted. With ...
I am just reposting this thread from a MSDN forum since it seems to be unavailable. It was very useful when I was having trouble with my folder mappings after migrating to TFS 2010. Question: I opened VS2008 and connected it to the upgraded 2010 TFS server. Upon clicking any of our Team Projects in source control explorer I get "Team Foundation Error - The workspace MYWORKSPACE;DOMAIN\MYUsername already exists on computer MYPCNAME." Answer: The same local paths on your machine are mapped to 2 different ...
I saw an MSDN Forum post today, so I looked for a ListInstance Hidden property in SharePoint 2007 features. There is none, but interestingly enough there is one in 2010. I wondered what would happen if you did this: <Elements xmlns="http://schemas.micro... <ListInstance FeatureId="00bfea71-de22-43... Title="Hidden List Test" Description="Testing a hidden list." TemplateType="100" Hidden="TRUE" OnQuickLaunch="FALSE" Url="Lists/TestHidden" /> </Elements> ...
This tutorial will show you how to build a plug-in for Windows Live Writer. Windows Live Writer is a blogging tool that Microsoft provides for free. It includes an open API for .NET developers to create custom plug-ins. In this tutorial, I will show you how easy it is to build one. Full source and binaries are now hosted on CodePlex. Open VS2008 or VS2010 and create a new project. Set the target framework to 2.0, Application Type to Class Library and give it a name. In this tutorial, we are going ...

We all love one stop portals :-)

Browsing around MSDN I came across this for connectivity, yes, a one stop portal, find info on connecting using a variety of technologies and good guides.

http://msdn.microsoft.com/en-us/sqlserver/connectivity.aspx

In this Issue: Mike Snow, Victor Gaudioso, Ola Karlsson, Josh Twist(-2-), Yavor Georgiev, Jeff Wilcox, and Jesse Liberty. Shoutouts: Frank LaVigne has an interesting observation on his site: The Big Take-Away from MIX10 Rishi has updated all his work including a release of nRoute to the latest bits: nRoute Samples Revisited Looks like I posted one of Erik Mork's links two days in a row :) ... that's because I meant to post this one: Silverlight Week – How to Choose a Mobile Platform Just in case ...
Do you want to develop an add-in targeting multiple versions of Office? And you have basic questions like “Is it possible to do? ” and “How to do it?” ? Then you came to the right place. Few months back, I got a requirement to developed add-ins for Outlook 2003 and Outlook 2007. The functionality for both the versions is same. A doubt stroked… when the functionality is same, why would I develop two add-ins separately? Why don’t I make a single build for both the versions of Office? Then I started ...
Up to now I have been looking at F# for modular solutions, but have never considered writing an end to end application. Today I was wondering how one would even start to write an end to end application and realized that I didn’t even know where the entry point is for an F# application. After browsing MSDN a bit I got a basic example of a F# application with an entry point [<EntryPoint>] let main args = printfn "Arguments passed to function : %A" args // Return 0. This indicates success. 0 Pretty ...
In this Issue: Phil Middlemiss, Jaime Rodriguez, Senthil Kumar, Mike Snow, DaveDev, Gergely Orosz, Kirupa, Cheryl Simmons, András Velvárt, Dan Wahlin, Michael D. Brown, and Ben Rush. Shoutouts: Erik Mork and crew have their latest up: This Week In Silverlight – Where’s the Tablet? Chris Rouw has a good link post and instructions on WCF RIA services: Deploying and Configuring Silverlight 4 and WCF RIA Services From SilverlightCream.com: Quick and Easy Sscalable Rounded Bevels Phil Middlemiss duplicates ...
The other day I had a snazzy post on fetching all the video (WMV) files from Mix ‘10. A simple, console application that grabbed the urls from the OData feed and downloaded the videos. I wanted to change that app to fire the OData query asynchronously so here’s what resulted: 1: static void Main(string[] args) 2: { 3: var mix = new Mix.EventEntities(new Uri("http://api.visitmix.co... 4: 5: var temp = mix.Files.Where(f => f.TypeName == "WMV"); 6: var query = temp as DataServiceQuery<Mix.Fil... ...
We (Mikael Nitell and me) got a whole track on the Norwegian MSDN Live tour this year. We did these as a pair, and covered 4 cities over 4 days, 6 sessions per day, taking 8 hours to come through it. The Islandic volcano made the travels a bit rough, but we managed 6 flights out of 8. The first one had to go by van instead, 7-8 hour drive each way together with other MSDN Live presenters – a memorable tour! Oslo was the absolute top point. We had to change hall to a bigger one. People were crowding, ...

Nice blog post from Beth Massi talking about MSDN How do I video for SharePoint 2010 and Visual Studio, watch how easy it is to deploy a custom workflow and debug it right from VS 2010! I love it... enjoy http://blogs.msdn.com/bethmassi/archive/2010/04/27/more-how-do-i-videos-sharepoint-development-with-visual-studio-2010.aspx

Update 29/04/10: In contrary to what I initially stated in this post, Moles is not only available as part of the Pex framework, but also stand-alone on Visual Studio Gallery, and this is completely free (no MSDN subscription required). - Thanks to Peli for the correction... Usual opensource mocking frameworks (like e.g. Moq or Rhino.Mocks) can mock only interfaces and virtual methods. In contrary to that, Microsoft’s Moles framework can ‘mock’ virtually anything, in that it uses runtime instrumentation ...
Looking for a quick introduction to developing applications on Windows Phone 7? I found just the thing then. Check out this short 7 minute MSDN Video titled Windows Phone 7 in 7: Silverlight and Windows Phone 7. I liked the direct and to the point nature of the video. Like the title implies, it’s less than 7 minutes long and provides just enough information to start laying a solid foundation to start learning more about Windows Phone 7 development. Have a day. :-| ...
The scenario; A small team of 3 developers mostly in maintenance mode with traditional ASP.net, classic ASP, .Net integration services and utilities with the company’s third party packages, and a bunch of java-based Coldfusion web applications all under Visual Source Safe (VSS). They are about to embark on a huge SharePoint 2010 new construction project and wanted to use subversion instead VSS. TFS was a foreign word and smelled of “high cost” and of an “over complicated process”. Since they had ...
The purpose of my blog is to explain things for a Silverlight developer. One of the best things about Lambda's is that you not only use them in Silverlight but any project targeting .net 3.5 I’ve seen several blog post that use lambda expressions always assuming the audience is familiar with them. The purpose of this post is to make them simple and easily understood. Let’s begin with a definition. A lambda expression is an anonymous function that can contain expressions and statements, and can be ...

Just surfed on this Free MSDN Magazine sweet

Ashraf, on the MSDN forum, asks, “Is there a way to make a default choice for the messagebox that happens after a period of time if the user doesn't choose (Clicked ) Yes or No buttons.” To elaborate, the requirement is to show a message box to the user with certain options to select, and if the user does not respond within a predefined time limit (say 8 seconds) then the message box must dismiss itself and select a default option. Now such a functionality is not available with the MessageBox() api, ...

My work just started (a couple of months ago actually) allowing us access to our MSDN subscriptions.  This is totally cool.  I’ve been begging, borrowing, and stealing all these years to have access to Visual Studio and the other tools.  Now, I’ve got them all.  It is totally cool.  What’s even cooler is that I’m going to be installing them (along with a brandy spanky new Windows 7 installation) on a MacBook or MacBookPro in the coming weeks.  How’s that for most excellent?

As Visual Studio 2010 IDE has been mostly written in WPF, extending the start page has become pretty darn easy and I for one find this quite interesting as I always open with the start page and the more customisation I can have the better! There are a few things you will need to install first to get going Visual Studio 2010 SDK Start page project template, which you can either get from the New Project dialog, in the online gallery section in VS or download from here I was going to write a blog post ...
Getting my geek on… I have decided to call the products VS.10 (Visual Studio 2010), TP.10 (Test Professional 2010), and TFS.10 (Team Foundation Server 2010) Thanks Neno Loje. What's new in Visual Studio & Team Foundation Server 2010? Focusing on Visual Studio Team System (VSTS) ALM-related parts: Visual Studio Ultimate 2010 NEW: IntelliTrace® (aka the historical debugger) NEW: Architecture Tools New Project Type: Modeling Project UML Diagrams UML Use Case Diagram UML Class Diagram UML Sequence ...
[Source: http://geekswithblogs.net/E... Overview Ignoring the fashion, I still make a lot of use of DALs – typically when inheriting a codebase with an established database schema which is full of tried and trusted stored procedures. In the DAL a collection of base classes have all the scaffolding, so the usual pattern is to create a wrapper class for each stored procedure, giving typesafe access to parameter values and output. DAL calls then looks like instantiate wrapper-populate parameters-execute ...
I intend to pull together a FREE eBook on the Windows Azure Platform – but I need your help to make it rock! If you have detailed experience of any aspect of the Windows Azure Platform and can spare a few hours of time to turn that into a short article (400 to 800 words) then please get in touch. This is not a big commitment but my suspicion is the end result will make for a cracking good read. I am hoping for a mix – everything from lessons learnt from early adopters to introductions to elements ...
Alex (http://simpleisbest.co.uk/) does a very good job in covering the new features of .NET 4.0 and Visual Studio 2010. His focus is on the developers that have experience in development using previous versions of Visual Studio, more specifically Visual Studio 2008. The following are my views towards his book. 1. Scope / Coverage Even as the book is labeled as introduction, it is covers a broad spectrum of technologies, features and references that are focused into helping a developer quickly decide ...
Recently I came across LINQPAD at http://www.linqpad.net/ a free utility by Joseph Alabahari. This is an excellent tool for developing and testing LINQ queries before you incorporate them into your C# programs. If you get stuck as I did at one point recently there is the MSDN Linq forum at http://forums.microsoft.com... where you can ask for help ...
I think back to the days of the first versions of Visual Studio (when it was called Visual Studio .NET, remember?) and I think about how far Microsoft has come with this IDE. It really is the best IDE on the market. There is so much to this IDE it is amazing. It now can really handle managing your complete software application development lifecycle. For me, it is (besides Windows 7) the best and most successful product Microsoft has developed. You can obviously get this now and it is available on ...
Someone on the MSDN forum asked about how to show a wait cursor, like when your application is loading or performing some (background) task. It’s pretty simple to show the wait cursor in both managed and native code, and in this post we will see just how. Managed Code (C#) Set Cursor.Current to Cursors.WaitCursor, and call Cursor.Show(). And to come back to normal cursor, set Cursor.Current to Cursors.Default and call Show() again. Below is a button handler for a sample app that I made, (watch the ...
Today I came across a wierd issue in a Visual Studio 2008 Code Coverage Analysis. Consider the following method: private IController GetController<T>(ICon... context) where T : IController, new() { IController controller = new T(); controller.ListeningContext = context; controller.Plugin = this; return controller; } This method is called in a unit test as follows (MenuController has an empty constructor): controller = plugin.GetController<Men... After calling this method ...
One of the 6 sessions I and Mikael Nitell is running on MSDN Live 2010 here in Norway is about Code Quality, and part of that session goes through the use of Code Contracts and Pex. Both fantastic tools ! They can be used together, but are also completely independent from each other, and each can be used single. Code Contracts has to downloaded separately from VS 2010 (works also on VS 2008). Start looking at http://msdn.microsoft.com/e... . This download is a free download. ...