Entries Tagged '.Net' ↓

Converting to Windows 8 from Windows Phone | HttpClient vs. HttpWebRequest (5 of 12)

Peter von Lochow Andreas Hammar Håkan Reis

Just to be clear, this is not a necessary step for us to take in our conversion process. But it’s a step that spreads some light on some of the differences regarding how you write code for Windows Phone and Windows 8. You can even say that it will show how much easier life gets [...]

Tags: , , , ,

Converting to Windows 8 from Windows Phone | XAML has a new home (4 of 12)

Peter von Lochow Andreas Hammar Håkan Reis

The perhaps most obvious difference between Windows Phone and Windows 8 is that XAML is no longer a part of .NET in Windows 8. The reason for it being so obvious is that all references to System.Windows breaks the build. Simply put – XAML now resides in Windows Runtime instead of .NET. The problem is [...]

Tags: , , , ,

Converting to Windows 8 from Windows Phone | Setting up the project (3 of 12)

Andreas Hammar Peter von Lochow Håkan Reis

Now we’ve reached the point where we stop talking and start playing around with some code. As concluded in the previous post on porting strategy, we’ll simply copy the code files from the Windows Phone project and create a new Windows 8 project. It won’t build right away, let alone run, but it’s a start. [...]

Tags: , , , ,

All you need to do is implement OpenID…

Anders Poulsen

We have created a Single Sign On (SSO) solution for a client with a multitude of websites. Many of them with each their own login solution. The basis for the SSO solution is OpenID, so we have created an OpenID Provider. Now, often when a new website joins the SSO solution, we find that telling a [...]

Tags: ,

Converting to Windows 8 from Windows Phone | Conversion strategy (2 of 12)

Andreas Hammar Peter von Lochow Håkan Reis

In our previous introductory post we set the stage for what we’re going to accomplish with this conversion. Now it’s time to take the first step. Before we dive in, lets lean back and think about how to proceed. We have a working Windows Phone application and we have nothing when it comes to Windows [...]

Tags: , , , ,

Converting to Windows 8 from Windows Phone | Introduction (1 of 12)

Peter von Lochow Andreas Hammar Håkan Reis

You have to start somewhere, and both a blog series and a conversion starts here. During the following weeks we’ll take a real (is-deployed-to-marketplace-real) Windows Phone application and convert it, step by step, to a Windows 8 Metro application. Our hopes and dreams are, because the similarity between the platforms and the mutual design language, [...]

Tags: , , , , ,

Advanced transparent live tiles with count for windows phone

Håkan Reis

The live tiles are brilliant to show information regarding your application without forcing the user to open it up. The basic live tile gives you two sides with some text, a count and ability to set background images. Outlined in the MSDN documentation, and thousands sites with getting started information. However, when you want to [...]

Tags: , , , ,

The problem with the SystemTray white foreground color in WindowsPhone

Håkan Reis

The other day I was designing a dark static theme for Windows Phone. As I know it will be a dark theme, no matter if the user selects light or dark theme, I wanted to make sure the SystemTray was visible at all times. In this case I sat the opacity to 0 so that [...]

Tags: ,

Fast App Switching does exist on 256 MB Windows Phones

Andreas Hammar

Even though early specifications of the limitations of low-end devices (256 MB) stated that Fast App Switching (FAS) would not be available – it actually is! It’s just so much less likely to happen because of the memory limitations. The updated MSDN documentation explains it as: Fast Application Switching is supported on 256-MB devices. However, [...]

Tags: , , ,

Motion detection and face recognition with Kinect

Håkan Reis binhtu Kleine

    Kinect for Windows is now launched, what fun can we do with it? Under a spontaneous meeting we had a quick brainstorm for ideas that could be fun and quick to create in one weekend. Many ideas came up based on the the fun interaction a Kinect is making possible. We want to [...]

Tags: ,

Adventures in Gotham City

Per Ökvist

Introduction The choice of client side MV* framework ain’t an easy one. And fairly often a new one comes along. Among the usual suspects we find frameworks like Backbone, Knockout and Spine. In this post we’ll setup a playground for another client framework. Batman. This using Visual Studio and ASP.NET Web API. Batman is a [...]

Tags: , ,

HttpClient makes GET and POST very simple

Peter von Lochow

There is one thing that most client projects have in common – they request data, in some form, from a server. When developing for Windows Phone I prefer to do these requests using HttpWebRequest instead of WebClient (why – explained here by Andreas). But this is not a post about Windows Phone, it’s about the [...]

Tags: ,

Using Backbone.CQRS with SignalR

Per Ökvist

Introduction Many popular client MV* frameworks lean on the convention of an HTTP API of resources. But in a world of with many different approaches ex Sockets, Hyper Media APIs, this model doesn’t  always fit. Backbone.CQRS is an extension for backbone that provides CQRS integration client side. This enables backbone to fit with a CQRS [...]

Tags: ,

ReSharper live template for an INPC property

Andreas Hammar

I’ve considered ReSharper a must-have for Visual Studio for many years, and their live templates are code snippets on steroids. Here I share with you my simple but effective template for generating properties. What it does is add the backing field in camelCase (with an underscore) matching your public name written in PascalCase. All you [...]

Tags: , ,

Unboxing Dropbox and SharpBox

How to programmatically upload a file to your Dropbox account. On a train trip during the New Year’s weekend, I spent time testing and collecting notes about how to interact with Dropbox. I will share my findings with you in this blog post. Dropbox   “Dropbox is a free service that lets you bring your [...]