programming

Using Scala in GWT projects

I've been experimenting with GWT (Google Web Toolkit) recently. GWT allows you to write responsive and consistent user web interfaces in a subset of Java programming language. The source code is then compiled into JavaScript, which can be run in any supported web browser.

Event Importer for Google calendar

I have released a new product: Event Importer for Google calendar. It allows importing iCalendar files (.ics), downloaded via browser quickly and easily. Possible use cases: event export from Facebook, Meetup, other online services, e-mailed .ics files etc. Please give it a try and let me know what you think.

Right-align help menu in a WPF application

If you want to right-align the "Help" (or any other) menu entry in your menu bar in a WPF application, you can use the following example:

<Menu>
    <Menu.ItemsPanel>
        <ItemsPanelTemplate>
            <DockPanel HorizontalAlignment="Stretch"/>
        </ItemsPanelTemplate>
    </Menu.ItemsPanel>
    <MenuItem Header="File">
        <MenuItem Header="Exit"/>

Use system icons in WPF

Sometimes you would like to use a standard Windows system icon, such as error, warning, question etc. in your WPF program. The main reason is usually consistent look with the rest of the system. While you could have extracted the desired icon from one of the system resource files, there is a much better technique for doing it.

Side by side editing of .resx files for localization

WPF allows you to create localized applications with relatively little effort. The localized strings are put into resource files (.resx), one per target language, and maintained as needed.

Microsoft icons for developers

Apparently, Microsoft allows users of Visual Studio to include some icons, supplied with the product. For example, to look at available icons in Visual Studio 2010, locate the file VS2010ImageLibrary.zip in the installation directory of your copy of VS (i.e.

Windows Phone .NET localization that works

I was quite eager to learn about Windows Phone 7 when the development preview came out. I downloaded the tools and tried to build a sample to get a feel. I must admit that developing .NET application for the new OS is quite easy. However one bit I couldn't make work - localization.

Windows Phone 7 development in Visual Studio 2010

The recently released Microsoft Visual Studio 2010 does not support mobile development for OS versions prior to the new Windows Phone 7. If you want to write software for Windows Mobile 6.5 or lower, you need to stick to Visual Studio 2005. So much for backward compatibility.

WPF DataGrid row validation

WPF is a very powerful framework for GUI development. Among other things, it contains a unified approach to user input validation. Adding validation in WPF is very straightforward in most cases. However, validating DataGrid rows is slightly challenging. However, the good people of the world has already taken care of the problem and provided quite detailed walk-throughs.

How to invoke click event in WPF programmatically

Sometimes you need to to trigger a click or some other event for one of your WPF controls, such as a button, a menu or a checkbox directly from code. There are no methods on the controls themselves do do this directly per event type. However it is not a big deal anyway - simply use RaiseEvent like this (assuming you have a MenuItem object called item):