Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Top Tip: Responsive multi-level site navigation - MSDN UK Team blog - Site Home - MSDN Blogs

AddThis Social Bookmark Button
Top Tip: Responsive multi-level site navigation - MSDN UK Team blog - Site Home - MSDN Blogs:

A common mobile navigation pattern is to convert a menu from an unordered list to a ‘select’ box and display the whole menu at once. This lends itself well to multi-level menus and I’ve been experimenting with this approach athttp://ew-resource.co.uk/p7exp-resp/
A promising and more elegant solution is  ‘FlexNav’ by Jason Weaver, which gives drop-downs on all screen sizes, a ‘device agnostic approach’ as he describes it. With the addition of respond.js it can be used on non-CSS3 browsers.

Reading QR Codes In Your Windows Phone App

AddThis Social Bookmark Button
I have recently been working on an application for a client that needs to read QR codes.  This has lead to some interesting findings.  There are a couple of approaches you can use.  One is to take a picture and evaluate it for a code and the other is more like the Bing Vision feature.  Both of them can be accomplished by leveraging theSilverlight ZXing library from Codeplex. In order to have QR code images to test I would suggest going to QRStuff.com.  It is a site where you can
freely generate QR images that you can prove out your app against.  This is how I generated the image at the top of this post.  If your code is working at the end you should be able to easily get back to this site.  Wink! Wink! So how do we write this code?  I am going to take a quick look at both approaches and we can see which one we prefer at the end.  For full disclosure I actually borrowed the code for both from other sites, although I don’t have references to them. Approach 1 ...(Read whole news on source site)

WPF Tree View with Multiple Levels

AddThis Social Bookmark Button
Earlier this year I blogged on how to use the WPF Tree View to view multiple levels. Since then I have had many requests to do the same in WPF. Luckily, the code is almost identical. Here is a blog post on using the WPF Tree View that has multiple levels. There are many examples of the WPF Tree View that you will find on the web, however, most of them only show you how to go to two levels. What if you have more than two levels? This is where understanding exactly how the Hierarchical Data Templates works is vital.
In this blog post, I am going to break down how these templates work so you can really understand what is going on underneath the hood. To start, let’s look at the typical two-level WPF Tree View that has been hard coded with the values shown below:
 
   
   
 

 
   
   
   
 

Figure 1 shows you how this tree view looks when you run the WPF application. Figure 1: A hard-coded, two level Tree View. Next, let’s create three classes to mimic the hard-coded Tree View shown...(Read whole news on source site)

My Favorite Features: Entity Framework Code First and ASP.NET Web API

AddThis Social Bookmark Button
It’s an exciting time for Entity Framework! Last Thursday, the team announced an open source release, which is now available on the Entity Framework CodePlex Site. I’ve been using Entity Framework quite a bit in my personal development, and thought I’d use this opportunity to continue my “Favorite Features” series with a post on EF. In this post, I’m going to use the Code First workflow in Entity Framework to build an application. Entity Framework originally shipped as part of the .NET Framework, but in an effort to ship more often the last few versions have been shipped
on NuGet, in-between releases of the .NET Framework. In addition to being available on NuGet, the latest version of Entity Framework (EF5) is also included in a number of places in Visual Studio 2012. As part of building the app, I’ll also use ASP.NET Web API to build an HTTP service. ASP.NET Web API is another favorite feature of mine, and is great way to create services that can be consumed from different clients. What’s New in EF5 I thought I’d start with a quick recap of the new features in Entity Framework 5, some of which we’ll get to use...(Read whole news on source site)

Using a provisional WinRT port of SilverlightSerializer to store state in MVVMLight ViewModels

AddThis Social Bookmark Button
Over 1.5 years ago I showed how to store your Windows Phone application state (‘tombstoning’) using SilverlightSerializer by Mike Talbot. In my quest to leverage hard-won Windows Phones skills to be usable in Windows 8 I made a provisional port of SilverlightSerializer 1 to WinRT. That is, in C#. Since my win8nl library port is a bit behind, I’ve stuck the class in a simple project that you can download here. Usage is as follows: in App.xaml.cs, you define two methods: SaveState:private async void SaveState() { var
file = await ApplicationData.Current.LocalFolder.CreateFileAsync( "AppState.dat", CreationCollisionOption.ReplaceExisting); using (var fileStream = await file.OpenStreamForWriteAsync()) { SilverlightSerializer.Serialize(MainViewModel.Instance, fileStream); } } Pretty simple: when the state needs to be saved, create a file, get a stream, and let SilverlightSerializer do its magic. As for RestoreState:private async Task RestoreState() { try { var files = await ApplicationData.Current.LocalFolder.GetFilesAsync(); var dataFile = files.FirstOrDefault(p => p.Name == "AppState.dat"); if (dataFile != null) { using (var fileStream =...(Read whole news on source site)

Upcoming Events for July 23rd, 2012

AddThis Social Bookmark Button
Here are the events listed in Community Megaphone for the next couple of weeks for the Mid-Atlantic area, as well as webcasts of interest…this list includes events imported from the UGSS event calendar, and user group events entered in Community Megaphone are also automatically synced to the UGSS event calendar: MD Baltimore GiveCamp - Technical Analysis Day
Saturday, August 04, 2012 9:00 AM, Baltimore, MD
GiveCamp is a "coding for charity" event where PM's, BA's, Team Leads, Web and Database Developers, DBA's, & Designers team up over the course of a weekend to develop websites,
databases, mapping applications, etc.. for local non-profits who otherwise couldn't afford it. At the 2011 GiveCamp, we saved 21 non-profits over $250,000 in technology and resource costs. For 2012, we have 30 non-profits registered.

The Technical Analysis Day is where the Team Leads will receive the requirements from the Business Analysts, who gathered the requirements on June 2nd, 2012. The Team Leads will also evaluate the technologies/platforms, choose one for the project, and give the GC committee an estimate of the # and types of resources needed to complete the project.
Food and drinks will be provided to all volunteers...(Read whole news on source site)

Debugging WinRT/XAML bindings

AddThis Social Bookmark Button
Visual Studio 2012 may not (yet?) support debugging of XAML bindings debugging in WinRT/Metro-style applications in a way we’re used to from programming WPF and Silverlight (a.k.a. XAML breakpoints), but basic notifications of failed bindings in the output window seems to be present and working. Let’s look at the basic set up (new blank application). MainPage.xaml – DataContext is set to the same page class to keep it simple;  TextBlock’s text is bound to a MyBinding property.
xmlns:local="using:App1" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" DataContext="{Binding RelativeSource={RelativeSource Self}}" mc:Ignorable="d">
MainPage.xaml.cs public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); } public string BindingText { get { return "OK"; } } } BindingText property in the code-behind class that TextBlock is bound to, exposes a fixed string. Running this project should greet...(Read whole news on source site)

Home