How to Deploy SSTP and L2TP VPN in Windows Azure (Windows Server 2012)

Now, Windows Azure is more and more popular in our business. In the meantime, we all know we can deploy Virtual Network in Windows Azure. However, deploying Windows Azure Virtual Network is a quite annoying thing. So we can use Windows Server 2012 RRAS roles to provide VPN. Following the steps to implement it.  …

12

Can’t Update Visual Studio 2013 Extensions for the Windows Library for JavaScript

WinJS shipped a new update at Apr 3rd, which we could download via http://www.microsoft.com/en-us/download/details.aspx?id=40793, also we could see this update notification in Visual Studio. But the first time I updated this extension, I still get the update notification and can’t see new project templates under JavaScript section as below: After some search, I finally get…

6

Capturing Snapshot in Windows 8.1 Store App

During development in Windows Store App, to capture a snapshot is one of the most common requests developers will face with. By the API restrictions in previous WinRT, there was no way for a Windows Store App to capture screenshots, neither XAML nor JavaScript could do this. But in Window 8.1 Apps, we could take…

4

FAQs about In-app purchase for Windows Phone 8

Although that there is a great section that describes In-app purchase for Windows Phone 8 (IAP) on Windows Phone MSDN library, we’ve also received a lot of questions that were asking for some important particulars. I am writing this article to add some supplements of what the MSDNarticles don’t cover in detail. We’ve heard a…

4

Windows Phone 8 内购FAQ

尽管MSDN里有一篇很好的关于Windows Phone 8内购的文章,我们这里还是收到很多内购相关的问题。这篇博客旨在为了补充MSDN文章中没有涵盖的一些细节。 我们听到很多有关于Windows Runtime和Windows Phone Runtime互相共享代码的事情。而且,的确内购部分是相互共享的。事实上,我们在MSDN上看到的有关于Windows Phone的文章数远远大于Windows Store。而且,由于很多API是Windows 8中独有的,例如 CurrentAppSimulator,ProductLicense.ExpirationDate等等,所以我们在阅读这些文章的时候要多加注意。 这篇博客主要是适用于Windows Phone的内购,不过,Windows 8 Store App和Windows Phone Store App在内购方面的流程还是很相似的。 MSDN相关文章: In-app purchase for Windows Phone 8 http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206949(v=vs.105).aspx In-App Purchase API overview for Windows Phone 8 http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206950(v=vs.105).aspx In-app purchase testing for Windows Phone 8 http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681689(v=vs.105).aspx Mock In-App Purchase Library http://code.msdn.microsoft.com/wpapps/Mock-In-App-Purchase-33080f0c In-app product properties http://msdn.microsoft.com/en-us/library/windowsphone/help/jj206721(v=vs.105).aspx In-app product…

3

code-snippet-plugin-for-windows-live-writer

  It is highly recommend to use this live writer plugin http://plugins.live.com/writer/detail/code-snippet-plugin-for-windows-live-writer to compose code snippet in the msdn blog. Many thanks Leo (http://lvildosola.blogspot.in/ )’s contribution years ago!   C#:  using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.Security.Cryptography; using Windows.Storage.Streams; using Windows.System.Profile; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using…

3

Windows Phone 8.1 开发技术概览 (Universal APP)

前一阵真的比较懒 WP8.1 已经出来这么长时间了现在才更新BLOG让大家久等了,今天我先为大家介绍下 WP 8.1的开发框架,什么是微软所推崇的 Universal APP,以及我们要开发 Universal APP的时候要注意哪些内容。 如果是您是一个刚刚接触 WP开发的朋友可以先看下我之前的文章了解一下故事背景:Windows Phone 8 与 windows 8 开发技术概览 首先给大家完善一个概念 – 那就是 Windows Phone 8.1 和 Windows Phone 8.0 的区别 1. WP8.0 的开发架构是基于 silverlight runtime 运行时 2. WP 8.1 的开发架构有两种 silverlight runtime /  Windwos XMAL ( 等同于Windows 8.1 ) 运行时 今后我所说的 Universal APP 是基于 Windows XAML 运行时的…

3

Windows Phone 8 App: ScrollViewer Issue inside Item Template with SelectedChanged in ListBox

While working with Windows Phone App Development, one of the commonest tasks is to use ListBox and put TextBlock inside ItemTemplate, considering the XAML below: 1: <ListBox x:Name="MyListBox" HorizontalAlignment="Left" SelectionChanged="MyListBox_SelectionChanged" > 2: <ListBox.ItemTemplate> 3: <DataTemplate> 4: <StackPanel Orientation="Horizontal" Background="Blue" Height="80" Margin="15,0,0,7"> 5: <TextBlock Text="{Binding SomeContent}" FontSize="25"/> 6: </StackPanel> 7: </DataTemplate> 8: </ListBox.ItemTemplate> 9: </ListBox> In…

3

How to Use Custom Font in Windows Phone 8 Application

When building a Windows Phone app, it’s quite common that we’d like to change the font style of a TextBlock, TextBox and etc. By default, Windows Phone 8 supports fonts for the majority of the writing systems of the world, there are many font families nested in Windows Phone OS, we could take a reference…

2

how to get unique device id for Windows 8 and Windows Phone app

Background: In some situation we may want to identify different device that the app runs on in order to apply device-specific content or behavior. Original from Windows Phone 7 ago, we got direct solution to retrieve the device unique ID for a WP device, and things were got a little changed (improved) for Windows Phone…

2