My name is Edward Tanguay. I'm an American software and web developer living and working in Berlin, Germany.

Howtos
How to setup JQuery intellisense in Microsoft Visual Web Developer 2010 Express If you are working on Windows, Visual Web Developer 2010 Express has very nice intellisense for Jquery, here's how.
|
How to set up LINQPad to learn LINQ fast LINQPad is one of those programs that produces an interactive learning experience beyond what any book or instructional video could do. This how-to shows how to set up everything you need to learn LINQ with LINQPad interactively just by trying out and playing with examples. The program is free and you can pay $19 for intellisense which enhances the learning experience considerably.
Download LINQPad 4.0
Install the Northwind Database In LINQPad
Use the Samples Provided:
Download More Samples:
Add Your Own DLL:
Purchase Intellisense
Ask LINQ Questions On StackOverflow:
|
How to install Ubuntu 9.04 on your laptop I needed to reinstall Vista on my laptop so decided to take the opportunity to install the current Ubuntu to see how it's doing in terms of ease of use. It was a simple install, the upper-left menu is simple: found office, gimp, youtube movie player immediately, was online immediately, sound worked, plugged in printer it was immediately recognized and installed, set up e-mail client with google e-mail in 5 minutes, and everytime it needed something from the internet (e.g. to install the youtube movie player), it just asked my password and then downloaded and installed what it needed and put it in the menu. And network sharing with Vista worked perfectly. After experimenting with Ubuntu, I was going to install Vista over it but will now leave 20 GB and install Ubuntu parallel so I can get some more experience with it, this is a very usable operating system.
Download Ubuntu
Burn Ubuntu Installation CD
Install Ubuntu
Use Ubuntu
Internet Works
Open Office Works, Printing Works
E-mail Works
Networking with Vista Works
Other Applications
Turning Off and On
|
How to create a code snippet for Visual Studio 2008 Knowing how to make quick code snippets enables you to quickly put repetitive code into keywords so that you can just type e.g. statprop press TAB twice and a code block pops in which allows you to fill in variables. Learning this skill can increase your coding efficiently quite a bit, and it's easy to do you just have to run through the steps a couple times and you have it.
|
How to create tabs with jQuery UI Tabs are a space saver that are welcome on almost any site. This how-to shows you step-by-step how to quickly integrate them into your site using the jQuery UI. The full download for the tabs with stylesheet is 122K so you have to be sure to test the loading on slow connections, but if this isn't a problem, jQuery makes tabs and other controls very easy to add useful UI controls to your site. ![]()
|
How to use App.Config in WPF applications When you create a WPF application it doesn't have a config file like ASP.NET websites do, but with a couple of steps you can add one and access it, here's how.
|
How to automatically create a switch statement from an enum Found this one through serendipity today. You create an enum, then use the code snippet for "switch" which automatically fills out the case statements with all values of your enum, in my case, exactly what I wanted. ![]()
|
How to edit files in InetPub on Vista On Vista, the UAC locks down Inetpub directory and below pretty tightly so working on it means you basically have to copy files and confirm you are an administrator. Even if you open Windows Explorer as admistrator, you still can't edit files (since all Windows Explorers run under a single process by default). Here is how to fix it.
|
How to view the code for the UnityContainer class in Composite Application Guidelines I had downloaded Composite Application Guidance library but was only getting meta data when looking for the code for the UnityContainer class. Here is how to get the source code for it.
|
How to build a Silverlight application with Prism v2 This shows you how to build a Silverlight application with the Composite Application Guidance for WPF and Silverlight - February 2009. It is a streamlined step-by-step that does the same as the Silverlight Hands-On Lab: Getting Started with the Composite Application Library in the PrismV2 documentation. Use it if you need to build the bases of a Silverlight Prism application quick. You can also download the code to get the finished solution. I used Microsoft Visual Web Developer 2008 Express Edition to create this.
Compile the .DLLs That You Will Need Later
Create Basic WPF Application
Add Region To XAML
Add Bootstrapper, Etc.
|
How to build a WPF application with Prism v2 This shows you how to build a WPF application with the Composite Application Guidance for WPF and Silverlight - February 2009. It is a streamlined step-by-step that does the same as the WPF Hands-On Lab: Getting Started with the Composite Application Library in the PrismV2 documentation. Use it if you need to build the bases of a Prism application quick. You can also download the code to get the finished solution. I used Microsoft Visual C# Express Edition to create this.
Compile the .DLLs That You Will Need Later
Create Basic WPF Application
Add Region To XAML
Add Bootstrapper, Etc.
|
How to make CTRL-C not select a blank line Doing CTRL-C / CTRL-V on a line is a quick way to copy it, but if you happen to hit CTRL-C on a blank line, your clipboard contents are gone. This fixes that.
|
How to make animations more lifelike Animations are easy to create in Expression Blend, much easier to get going than in Flash. You just drag the shapes where you want them to go, move the time line up a second, repeat, etc. You can also click on the little markers on the keyframe line and them change how the transitions occur so that e.g. you can get less robotic and more life-like motion, very cool
|
How to set up ADO.NET Entity Framework with SQL Server database (MDF file) in a WPF application This shows you the exact steps to create a WPF application, SQL Server database (MDF file), an Entity Model, and display the contents of a database table in a WPF ListBox.
Set Up Project and Database
Add Some Data
Add the Entity Model
Bind Data To UI
|
How to set up ADO.NET Entity Framework with SQL Server CE (SDF file) in a WPF application This shows you the exact steps to create a WPF application with a SQL Server CE (i.e. used in mobile devices), an Entity Model, and display the contents of a database table in a WPF ListBox. If you use a normal SQL database file (MDF) it will be 2 MB without data, whereas a SDF file is about 85K.
Set Up Project and Database
Add Some Data
Add the Entity Model
Bind Data To UI
|
How to use Application Resources in Silverlight Application Resources are like a stylesheet that is available to all your pages. This example makes a colored brush available to the whole application, I then use the brush in a rectangle, ellipse and button. ![]() First put your resources in App.xaml:
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="Second106.App" > <Application.Resources> <LinearGradientBrush x:Key="BackgroundBrushMain"> <LinearGradientBrush.GradientStops> <GradientStop Offset="0.00" Color="Beige" /> <GradientStop Offset="1.00" Color="Orange" /> </LinearGradientBrush.GradientStops> </LinearGradientBrush> </Application.Resources> </Application> Then use them in any of your pages:
<UserControl x:Class="Second106.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:toolkit="clr-namespace:Microsoft.Windows.Controls;assembly=Microsoft.Windows.Controls" Width="400" Height="300"> <Grid x:Name="LayoutRoot" Background="White" > <StackPanel HorizontalAlignment="Left"> <Button Background="{StaticResource BackgroundBrushMain}" Content="Test"/> <toolkit:DockPanel Margin="20"> <Rectangle toolkit:DockPanel.Dock="Top" Fill="{StaticResource BackgroundBrushMain}" Width="100" Height="100"/> <Ellipse toolkit:DockPanel.Dock="Bottom" Fill="{StaticResource BackgroundBrushMain}" Width="100" Height="100"/> </toolkit:DockPanel> </StackPanel> </Grid> </UserControl> |
How to get buttons from stretching from right to left When doing layout with XAML I was always bothered by the fact that buttons would stretch out from the left to right border of the element they were in and I would end up having to hard code widths to fix this, which isn't very flexible down the road. The answer is you have to set the HorizontalAlignment in the parent control since the default value is "stretched" e.g. in StackPanel. This simple code will have stretched buttons out to 300, the width of the UserControl:
<UserControl x:Class="Second12.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="300" Height="200"> <Grid Background="Beige" > <StackPanel> <Button Content="OK"></Button> <Button Content="Cancel"></Button> </StackPanel> </Grid> </UserControl> ![]() However, if you give the StackPanel any value in HorizontalAlignment, the buttons will be sized to their text contents:
<UserControl x:Class="Second12.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="300" Height="200"> <Grid Background="Beige" > <StackPanel HorizontalAlignment="Center"> <Button Content="OK"></Button> <Button Content="Cancel"></Button> </StackPanel> </Grid> </UserControl> ![]() |
How to build a base Prism application This is a list of steps I refer to when I want to build a base Prism application with modules and dependency injection with the Composite Application Library. These steps are a condensed version of what you learn at the Composite Application Guidance for WPF Hands-On Lab
|
How to define styles central and use them in every XAML file This shows you how to attach "style sheets onto XAML files" as you attach CSS files onto HTML files. There is more to it than this, but if you are a web developer starting with WPF, this will get you started with centralized styles and the separation of form and content in your WPF applications.
|
How do styles in WPF similar to HTML/CSS If you are learning WPF coming from a web developer background, this examples shows you the basics of defining styles in one file and then assigning each element a style as you do in HTML/CSS. ![]()
|
How to create WPF user controls with parameters This shows you how to create an InfoBox user control that you can use repeatedly in your WPF application, sending it a title and a body. It uses DependencyProperty to pass the parameters so good if you are trying to understand those as well. ![]()
|
How to download, install and use the Codeplex Datagrid component This will show you step by step how to install the WPF Toolkit from Codeplex and use the Datagrid component. There are a number of steps that may not be clear to people just starting out with .NET and WPF. ![]()
|
How to make a two-page Silverlight application with a button that switches between the pages This is a little info box that allows the user to switch between two pages by clicking on a button. ![]()
|
How to install Codeplex's Silverlight tools to be able to use DockPanel in Silverlight There are many WPF controls which you do not have access to when developing in Silverlight. This HowTo shows how to get and use the DockPanel control.
|






































































































