Using Windows Phone As Windows 7 Accelerometer Sensor

Saturday, August 13, 2011

I just had a cool idea! (actually I had it like 6 month ago, but bear with me). My idea involves mixing some of the features in Windows 7 with some of the features in Windows Phone 7, to create a glorious mix!   Windows 7 One of the new features in Windows 7 is the Sensor API which provides a standard interface for accessing sensors of various types, like accelerometer, etc.. I wrote in the past about how you can consume this API from a C# application using Windows API Code...

Ribbon with C++, Post 6: Ribbon Dynamic Structure Capabilities

Tuesday, June 21, 2011

This is the 6th and last post about using Windows Ribbon Framework features in C++. You can find the previous parts here: Part 1, Part 2, Part 3, Part 4 & Part 5. In this post we will dive into the ribbon's dynamic structure capabilities, i.e. we will learn about the different ways to change the structure of the ribbon at runtime. Specifically we will learn about Application Modes and Contextual Tabs. We will see what are these features, when to use them and how. Application Modes What is Application Modes? Application Modes...
2 comments

Ribbon with C++, Part 5: Using Galleries with Windows Ribbon Framework

Thursday, June 16, 2011

This is the 5th post about Windows Ribbon Framework features. On previous posts we have introduced the ribbon framework, seen a complete example, and reviewed how to use buttons-based UI controls and how to control their layout. In this post we continue our exploration of the Windows Ribbon Framework, this time focusing on Gallery controls. We will learn what galleries are and what is the difference between an item gallery and a command gallery. We will learn about the different gallery controls: ComboBox, DropDownGallery, SplitButtonGallery and InRibbonGallery. ...
no comments

Ribbon with C++, Part 4: Layout Controls in Windows Ribbon Framework

Wednesday, June 15, 2011

This is the 4th post about Windows Ribbon Framework features. On previous posts we have introduced the Windows Ribbon Framework, shown a complete example of how to develop a ribbon enabled application and reviewed the different buttons-based UI controls that the ribbon framework provides. In this post we continue our review of the various features in the Windows Ribbon Framework. This time we will focus on a task that every ribbon application developer should address: How to layout UI controls on the ribbon. We will see how to define tabs and...
no comments

Ribbon with C++, Part 3: Using Buttons with Windows Ribbon Framework

Monday, June 13, 2011

On previous posts we have seen an introduction to the Windows Ribbon Framework and learned how to develop a ribbon enabled application. In this post we continue our review of the various features in the Windows Ribbon Framework. This time we will focus on the most common feature in the ribbon: Buttons. I assume the concept of a button needs no introduction; however, there are several kinds of buttons available with the Windows Ribbon Framework and in this post we will review them. But first, let's dive into the details of how we use the ribbon...
no comments

Ribbon with C++, Part 2: First Ribbon Enabled Application

Monday, June 6, 2011

In this post we continue our review of the Windows Ribbon Framework feature brought to us in Windows 7. For more information on the ribbon feature in general and Windows Ribbon Framework in particular, make sure you read Part 1. Today we will see how to create a ribbon enabled application in C++ using the Windows Ribbon Framework. To show it we will build a small application with a ribbon that will contain two tabs, three groups and several buttons. As mentioned in the previous post, there are four steps we need to follow in order...
no comments

How To Use a .NET 4 Based DLL From .NET 2 Based Application?

Monday, May 30, 2011

Introduction The official answer is you can’t. Even with the In-Process Side by Side execution (SxS) feature, introduced in .NET 4. The SxS feature was intended to be used when COM is involved. For example, if you got an application that loads plugins, like outlook, and it loads 2 COM plugins, one is using .NET 4 and the other is using .NET 2.0 then it will load two versions of the CLR into the process using the new SxS feature. What if I simply have a .NET 2 application or DLL that needs to access a...
13 comments

Setting Decimal value on PropVariant

Friday, October 16, 2009

PROPVARIANT is Important PROPVARIANT is an important COM structure that is used in many windows shell features like: Shell Namespace Extensions, Taskbar Jump List, Sensors and Windows Ribbon Framework, just to name a few. In order to use these shell features in managed code, one must provide a .NET wrapper for this struct. Now, you might have expected that if this struct is so important, there would be good .NET wrappers for it.. Unfortunately, this is not the case. The problem with this struct is that it is pretty...