Workaround For Crash In Performance Profiling Tools for WPF

June 26, 2011

Introduction Every WPF developer knows the situation where you have a large line-of-business application, you’ve implemented all the features and when you finally run it on real data – it runs s-l-o-w. Optimization Time! Optimization for performance is fun since a 1% change of code gets you 99% change in performance. However, finding the one location you should change can be a pain. This is why we’ve invented performance profilers. Profilers can help you pin-point the problem. WPF? WPF applications performance problems can usually be categorized to several kinds, for example, layout related,...
one comment

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

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

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

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

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

Spelling and Grammar Checking Plugin for Windows Live Writer

June 10, 2011

Introduction In my previous post I’ve presented “After the Deadline”, a spelling and grammar checking web service and my .NET wrapper library. This library allows you to integrate spell and grammar checking in your .NET application. The library was written in C# using .NET 4. Also, back in this post, I’ve presented how one can use a .NET 4 DLL from a .NET 2 executable. All of this was just preparations for writing my own grammar checker plugin for Windows Live Writer. Now, I know what you’re thinking.. “Doesn’t WLW already have a spell checker?”...

C# Library for Grammar and Spell Checking

June 8, 2011

Introduction I recently had the idea to create a plug-in for Windows Live Writer that will provide grammar checks in addition to the built-in spell checks. As I’ve showed before, creating plug-ins for Windows Live Writer is easy, the problem was to get the code for doing the grammar checking. I’ve found this wonderful site named “After the Deadline” that provides a web based API for both grammar and spell checking, free for non-commercial use! The site also provides several wrapper libraries for using these APIs. Unfortunately, C# (or any other .NET language)...

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

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

Ribbon with C++, Part 1: Introduction to the Windows Ribbon Framework

June 3, 2011

Due to popular demand I’ve decided to use the knowledge I’ve gain while creating the Windows Ribbon for WinForms project and write a series of posts about working with the Windows Ribbon Framework with Win32 C++. In this post we will learn the basics of the Windows Ribbon Framework. What Is a Ribbon? Definition (from MSDN): “The Windows Ribbon framework is a rich command presentation system that provides a modern alternative to the layered menus, toolbars, and task panes of traditional Windows applications." Put another way, it is the upper part of most office 2007 applications: Figure 1: Microsoft Word 2007 RibbonThe ribbon...
no comments