O'Reilly logo

Pro C# 2010 and the .NET 4 Platform, Fifth Edition by Andrew Troelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

31.7. Creating the Jackpot Deluxe WPF Application

Create a brand new WPF Application project named JackpotDeluxe using Expression Blend, and set a reference to MyCustomControl.dll using the Project | Add Reference... menu option. Because your control is defined in an external assembly, update the opening element of the Window to define a new XML namespace named custom that maps to your MyCustomControl namespace:

<Window
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:custom="clr-namespace:MyCustomControl;assembly=MyCustomControl"
  x:Class="JackpotDeluxe.MainWindow"
  x:Name="Window"
  Title="MainWindow"
  Width="640" Height="438">
  <Grid/>
</Window>

You will build your complete ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required