Windows 10 on Raspberry PI 2

The beauty of Windows 10 it runs on your Raspberry PI 2 as well as on your computer/laptop. An Universal Windows App for your laptop with Windows will run without many changes on a Raspberry PI 2.

It is fairly easy. In Visual Studio make an Universal Windows App. Press F5 to run the app locally and test it. That takes a while, but it will run as expected.

To run the same app on the Raspberry PI you need to follow some steps. Your computer is a x86/x64 solution Platform device. A Raspberry PI is based on ARM technology just like many mobile devices.


After choosing the solution Platform ARM Visual Studio will select Device. That is correct for a Mobile phone or tablet, but for a Raspberry PI you need to choose for Remote Machine.

After that you need to add some connection data of the Raspberry PI. Most of the time the Raspberry PI is also detected automatically.

image image

Press F5 again. Visual Studio will build, package and Deploy.


Without any changes tot the code the same app runs on a Raspberry PI 2. Fun! One OS for all devices.

In the movie below I show it live.

Posted in dotnetmag, Gadget, Gadgets, Tip, Visual Studio, Windows 10 | Comments Off on Windows 10 on Raspberry PI 2

Windows10: XBox ONE streaming

If you are the proud owner of a Xbox One and your PC is updated to Windows 10, than this is one of the new possibilities.

In the start menu there is a new tile called Xbox. If you click on this, you log in with your Xbox account (which is your Microsoft Account). In the app you see your status, your friends, your achievements etc, just as you would on your Xbox One.


But if you click here, you will see all Xbox One’s in your network. You can even turn on your Xbox One remotely.


After selecting the correct Xbox and clicking on Stream, you make a kind of RDP connection to your Xbox. Your PC needs a Xbox controller. If you are close enough to your Xbox, you can still use the Xbox controller on the Xbox while streaming.

Not everything is possible, for example Netflix cannot, but playing a game will.

Back to your PC, press ESC.

Cool he.

Posted in dotnetmag, Gadget, Gadgets, Tip, Windows 10 | Comments Off on Windows10: XBox ONE streaming

Windows 10: Hello Windows

With Windows 10 a new way of logging in is added. With Windows 8 you could login with your Microsoft Account, a PIN code or(especially handy for Tablets) a Picture password. With a fingerprint reader you also could login with your fingerprint.

Now there is also logging in with you face added. You need a Real Sense camera for this. There are already some laptops available with this camera build in. It should be possible later to login with a Kinect Sensor v2.

In this small (Dutch) movie a small impression.


Cool he!


Posted in dotnetmag, Gadget, Gadgets, Kinect, Surface, Tip, Windows 10 | Comments Off on Windows 10: Hello Windows

.NET on Raspberry PI 2

In a previous blogpost I told about Windows 10 IoT Core. This is great, because you can program in C# and you can add a Graphical user interface to it. But most of the IoT devices will not need user interaction or attached to a Monitor. The most IoT devices collect data and give that to others or keep track of an environment and are only expecting control information.

There may be enough reasons to use Windows 10 IoT Core, but it is not necessary for a Microsoft environment. Also on NOOBS (New Out of the Box Software) OS you definitely can use .NET.

For a couple of years the Mono project is going on and there lies the key of multi platform.

On your Raspberry PI 2 you can do: sudo apt-get install Mono-complete. With that you get Mono installed on your Raspberry.

The powerful Owin makes it possible to host a ASP.NET website on it.

6-14-2015 12-45-22 PM

The result:

6-14-2015 12-23-21 PM

Besides a website you can also host WebApi.

6-14-2015 12-46-19 PM

The result:

6-14-2015 12-44-29 PM

Pretty handy. I also have an example where a Raspberry PI 2 puts data on an Azure Storage queue. Because there is more on this, I will get back to that at a later moment.

Posted in dotnetmag, Gadget, Gadgets, IoT, Tip | Comments Off on .NET on Raspberry PI 2

Project Oxford

During the //Build/ Conference they showed a very nice demo; the Photo site (


Project Oxford ( is the base of this app. This API offers a lot of possibilities. The best part, you can use it yourself.


There is a fully documented API available. These API’s are for free for now, but it is a lot of fun to play with it.


Azure Machine Learning is used for the learning of the API. There is a nice free e-book about Machine Learning. Very readable and gives you some basis knowledge of Machine learning.

During the last Ignite Conference there was a second keynote. Done by the Technology and Research department of Microsoft. They showed what they did the past years. Like PowerBI and the translation machine of Skype etc. There was a funny demo about Data analyze and historical data.

When you are in Big Data or likes it, then I suggest you watch the second keynote (Ignite KEY02   The Next Era of Computing: Seeing the Future Before It Happens).

During a IoT Hackaton we connected a Raspberry PI 2 to a camera the photo’s were passed through this API. It worked. Unfortunately we could not use Windows 10 IoT Core yet.

Posted in dotnetmag, Gadget, Gadgets, IoT, Tip | Comments Off on Project Oxford

Windows 10 Development: Small and Big Screens

With Windows 10 and the fact that it runs on every device, the Universal app as we know in Windows 8.1 is gone. That makes it easier, but also more complex in another way.

image image

Previous you had a project for Windows Phone and the windows in this project are for small screens. Now every size of window is in one project even in one XAML file, you have to deal with that in one way.

Lucky the Windows 10 development SDK has some useful resources. Like a RelativePanel. On a RelativePanel the controls have a relative position to other controls. Way better than before, where you had to play with margins and absolute positions. Which let to strange behavior on different screen sizes etc.


Another powerful one is SplitView, then you have a Content and a Pane part. Most of the time we have a master detail on a window.


But this is not helpful if manipulation is done by coding stuff in events in the Code behind. Because that is not the way to do it anymore in a XAML / MVVM world. There is a nice solution for.

The VisualStateManager, which contains VisualStates with StateTrigger and StateSetters.


From a VisualState you set what the MinimalWidth or Height should be and with the Setters you specify what will happen.


In my SDN evaluation app example it looks like this. With the first the minimal width is 720 and from the second the alternative. This will also work on a Windows Phone with Windows 10, where you hold the phone in landscape or portrait.

image  image

As you noticed I have added a hamburger menu, I think a control would be better. It is a toggle button with the Font (Segoe MDL2 Assets) and a Glyph.


It works nice, but I hope they make it a bit better.

Nice session on Ignite: BRK2310 From the Small Screen to the Big Screen: Building Universal App Experiences with XAML

(disclaimer I am no XAML expert, I know a little)

Posted in dotnetmag, Visual Studio, Windows 10 | Comments Off on Windows 10 Development: Small and Big Screens

Windows 10 IoT Core

Since the //Build/ conference is a technical preview of Windows 10 for Raspberry PI 2 is available. With that the promise of Microsoft (Windows on all devices) becomes reality.

There will be 3 versions of Windows 10 IoT available: For Industry Devices, Mobile Devices and Core. Installing Windows 10 IoT Core on a Raspberry PI 2 very easy.

More information on and demos


While installing you will see these screens pass by. The first startup of Windows 10 IoT Core takes a bit longer, some additional setups are being done. No worries next time the startup is fairly fast.


When finished you see this.


In this early version some functions are not ready yet, but that will change soon.

On a Windows 10 machine with Visual Studio 2015 you can make a ‘normal’ Windows Universal App. This app can be deployed to your Raspberry PI 2 and the standard debug/F5 experience will just work.


In the IoT makers world a lot of components are available and most will work on the Raspberry PI 2 with Windows 10 IoT Core too. Have a look at the examples on


I have ordered some components and soon I will post more on these experiments. This is fun Knipogende emoticon!

Posted in dotnetmag, Gadget, Gadgets, IoT, Visual Studio, Windows 10 | Comments Off on Windows 10 IoT Core

Consume Modern SaaS EndPoints with Visual Studio 2015

We all know the functionality of Visual Studio to add a Service reference to your project. With this you can consume available Services rather easy in your application. From the code you can get to the methods of the services rather easy etc. More information can be found here.

Service Reference is a burden if the service needs credentials. The credentials with which you create the reference are often not the credentials you use in your application. Sometimes more configuration is needed and you need to read the documentation to find out. Can be done via the configuration files, but not fairly easy without good documentation.

Sometimes you need additional components or libraries while using a Service Reference. In Visual Studio we have NuGet to accomplish this. NuGet is anonymous and very generic; as provider of the component you can provide it to others, but configuration wise there is again without documentation nothing to support or help.

You need a combination of both.

In VS2015 they have added Connected Services. With Connected Services you will be helped with a Wizard to fill the correct parameters and adding the correct components to your project.

For now the number of Connected Services is not big yet, but App Insight, Mobile Services, Storage and SalesForce are available.

It is a open system. Everyone can add their own connected services and provide the to everybody. You can create your own Wizard to support your users.


Nice right? At Ignite there was a nice session BRK3706, which can be viewed via Channel 9 (

Posted in dotnetmag, Tip, Visual Studio | Comments Off on Consume Modern SaaS EndPoints with Visual Studio 2015

Xamarin: Multi Platform Development

In the past I wrote some applications for the Windows Phone Platform. A few of them can be even found in the store. They are not perfect, but they gave me good insight in how it works. What does a little screen mean for development and what does it need to get in the store?


The first of the list is still in the store, but I lost the code Knipogende emoticon. Even then the rules of the store are tighten a lot, so this app would not stand these current rules.

I have a app for the Windows 8 platform too. Well in fact a few more, but they are not available for download. One is a demo app for Azure Mobile Services and one is the SDN evaluation app I talked about previously.


But anyway, I wanted to make an app for Android and iOS too. I have tried on my iMac with Xcode, but I got lost in Objective C language and could not find my way with the Apple tools. In the Microsoft world Xamarin is the environment to do it. A super tool to exploit your current skills for the other platforms.

I had this need to develop for the other platforms for some time, but could not find the time. But I found time. It is a kind of Hello World app, although the usage is bigger. But almost no shared code and no server side code.

At my former employer Ronald Hubert made a Scrum app for Windows Phone. I have used his idea and design of the cards. I did not reuse his code and wrote it myself.

You make two windows, draws the cards on the first and in the Click event you open the second window. In the second window you load the correct scrum card with a Click event to get back to the first window.

In code:

private void imageV_Tapped(object sender, TappedRoutedEventArgs e)
{     Frame.Navigate(typeof(DetailPage), "V");

So in the Click event of the image, tell where to navigate to with a parameter. Clean and simple Knipogende emoticon


For Android development you have two choices. Or you develop with Visual Studio or you develop with Xamarin Studio. The first is more the way you always work as a C# developer. I haven chosen to work with Xamarin Studio.

In fact the same ritual like Windows Phone is used.

ImageButton imButton1 = FindViewById<ImageButton> (Resource.Id.imageButton1);
imButton1.Click += new EventHandler (PictureBtn_Click);
void PictureBtn_Click(Object sender, EventArgs e)
	ImageButton imgbut = (ImageButton)sender;
	var intent = new Intent (this, typeof (NextScreenActivity));
	intent.PutExtra ("picture", (imgbut.Tag == null ? "" : imgbut.Tag.ToString()));
	StartActivity (intent);

Different is, you need to find the button on screen (like in HTML) and connect to an event. In the event a new Intent created and with the Intent an Activity must be started.



Apple/iOS uses a Story board and forces MVC. There lot’s of events and codeblocks for the iOS part.


Screen Shot 2015-02-14 at 13.37.40

Although I could use C#, it was three time different developments.

There is also something like Xamarin Forms. Then the frontend for the different operating systems will be more alike. That will be my next project.

To get the apps in de Stores wasn’t that easy like before. Windows Phone and Android were much alike, but the Apple appstore was more trouble and takes more time to be validated.

To download this app::

Posted in dotnetmag, Gadget, Windows Phone | Comments Off on Xamarin: Multi Platform Development

Windows 10 and Office Apps

Since some weeks I am running the newest Windows 10 Technical Preview on my Surface Pro 3. The first version of Windows 10 was getting the worst behaviors of Windows 8.1 out of the system. Windows 8 was very Touch oriented, the first Technical preview of Windows 10 was more oriented on keyboard and mouse. This new version combines them better.

Some other new and nice additions are Cortana and Continuum. We know the first from the telephone and in same way from the XBox. You can speak to your PC in a natural language and she will understand you. Not like the old days where the computers had a small vocabulary. On the Phone and now on the PC you can activate Cortana by saying ‘Hey Cortana’. (At this moment only available in some countries)

During the first presentation of the Windows 8 successor they showed a slow movie about Continuum. Removing a keyboard will be detected and gives you the possibility to go into tablet mode.

10-2-2015 01-41-26

I have played with it and it works pretty nice. Even if you put the Type cover on a Surface to the back, it detects it as removing the keyboard. Now they should implement it detects a dockingstation too, because then you probably will stay out of tablet mode. One annoying thing when going into Tablet mode the desktop is not available anymore. Documents, shortcuts, apps etc on the desktop cannot be moved/executed or changed in Tablet mode.

Also the startmenu freshed up. On the left hand side the list with all applications is ordered and sorted. Grouping is possible again like we did on the Start screen.

Screenshot (4)

In de first version the icons were changed a little, they have changed more of them.

Screenshot (5)

Screenshot (6)

New in this version, Windows Store apps have more buttons on the title bar. On the right side there are Close, Full screen, maximize and minimize. On the left there is a little menu, with the items of Windows 8 with a Swipe from the right. They had to do this, because the store apps are now running in their own Window.

Screenshot (7)

This will not be the last changes, many will follow in the way to Build and during Build.

There is a new Touch based version of Office available. On all mobile platforms like Android, Apple and Windows Phone we had nice mobile versions of Office. The Android and Apple versions were a little further than on the Microsoft platform itself. But now in Windows 10 a preview of Word, Excel and PowerPoint is available. These have to be installed and downloaded from the store.

10-2-2015 01-34-51

They are rather complete and look very tight and nice.

10-2-2015 01-36-46

New documents will be placed by default on your OneDrive. Very handy, this makes your documents available on all your devices. This makes collaborate with others very easy. In each of the Office products there is a “Collaborate with others” button. Your document on OneDrive will be shared with the person you want to collaborate.

Screenshot (2)

Changes can be seen real time.

PowerPoint is for presentation of course. But like every App store app, it is Windowed so not full screen. Like you used too.

Screenshot (3)

I need some time during real presentations to get acquainted with this. Strange is though, the new menu items and buttons on the Title bar are not there with Office apps. Which I did not expect.

This version of Windows 10 is leaner and meaner, but there are still some rough edges. The Office apps are a real nice addition.

Posted in dotnetmag, Gadget, Gadgets, Office365, Surface, Windows 10 | Comments Off on Windows 10 and Office Apps