*UPDATE* If you are confused about the options you have read this first: How to leverage Surface investments for Windows 7

I like Surface and I like MsBuild – so i got motivated in making a build script where we could automatically port our Surface applications for Windows 7 Touchpack.

Of course there is trade offs as conventional multitouch screens are not working with tags – nevertheless it gives us and our customers a value add.

In order for this to make sense, the Surface applications have to be built in a resolution “neutral” way.

On your buildserver or development machine you need to install the MsBuild Community tasks.

image

Inside the project directory I generate a “libs” directory where I gather all of the assemblies for surface and touchpack.
After this I change the “References” in the surface project to go to the surface version of the assemblies in my libs directory.
Those two steps are mandatory to be able to build on a build server, to build on local development machines they are not required.

The first part of the Script collects all files that need to be changed:

<ItemGroup>
<ProjectFiles Include=”$(SolutionDir)**\*.csproj” />
<CSharpFiles Include=”$(SolutionDir)**\*.cs” />
<XamlFiles Include=”$(SolutionDir)**\*.xaml” />
<AppXamlFiles Include=”$(SolutionDir)**\App.xaml” />
</ItemGroup>

After this I define a Target that modifies the content of these files:

<Target Name=”TouchPack” >

This target consists of lines like:

<FileUpdate Files=”@(CSharpFiles)” Regex=”using Microsoft.Surface” ReplacementText=”using Microsoft.Surface.TouchPack” />

When ever I want to build for Windows 7 Touchpack I call the Touchpack target before my Build target.

You can download a sample build.xml from here.

Since April there is a nice way to port microsoft surface application for the growing number of multitouch screens available with Windows 7. This allows for a cool expierence on multitouch windows 7 – with the proven Development tools from the Microsoft Surface Tool chain. There is some manual porting effort included – nevertheless the effort is not to big. obviously anything related to “Tags” will not work – but can stay in the code.

Download details: Microsoft Surface Toolkit for Windows Touch Beta

Wednesday I installed Visual Studio 2010 Premium, and played a while with the WPF-based editor.
Annoying  thing: I could not select any of the controls on a WPF-Application-Form. Whenever I clicked on the TextBox, the Designer added a Border-Control.

Then I discovered, that the mouse-pointer was not at first position in the toolbox. So I rightclicked the toolbox, and chose “Reset Toolbox”. And there it was again: the mouse pointer at topmost position.

I do not know, why this happend, but now I can choose the controls on a form again.

One more nasty thing: Intellisense was disabled for C#. I had to turn it on manually …

To enable companies to leverage from the experience of our trainers and to be able to immediately create value out of their software investment in LieberLieber AMUSE we have created this promotional bundle: LieberLieber AMUSE Fast-start Package / Corporate (10 Licences & 2-days Training on-site within Europe) for € 9200,- (excl. VAT) So you get the training at your premises worth approx € 3000,- for free ! This promotion is valid until 15.7.2010!

For further information please contact Christian.Zauner[at]lieberlieber.com

Mr. CE "Doug Boling" posted a little bit more on CE7 here

The big news from a technical perspective is OS support for multicore processors (I’ve run it on a 4 core ARM CPU and it rocks!) and support for up to 3 GB of physical RAM.  The new kernel also supports ARM 7 (but as a tradeoff, ARM 4 support is dropped).

Cool news – we will need lots of processor power ;)

Silverlight For Embedded, first released in CE 6 Release 3, has been updated to support Silverlight 3 constructs and is accompanied by a powerful development tool that eases the integration work to hook in the C++ code behind. Multitouch and gesture support has also been added.

Needless to say I would have prepared a managed Silverlight story – at least as a second option. Nevertheless this sounds like the tooling around the unmanaged Silverligth improved

Check out www.microsoft.com/windowsembedded/en-us/products/windowsce/compact7.mspx for details.

Hope I have time to look at it on “real” Device soon!

On one of my Software and Gadget sites (Gizmodo) I found an neat way to guide even the elderly easy through the first steps with their new gadget.

Back to Basics

In one of our projects we had a little performance problem, so we researched some stuff to get things faster.

Problem:

Test

We have a XML File with a List<Base> and we wanted to generate Enterprise Architect Elements out of them.
So we needed to check if the Base element is of type: Class1, Class2,… to get all our attributes and some class specific functions called.

We used 200 elements and 15 derived classes and run through each test about 10 times,
here are the results on how to do this really fast:

(weiterlesen…)