Skip to Main Content
Pro C# 2010 and the .NET 4 Platform, Fifth Edition
book

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

by Andrew Troelsen
May 2010
Intermediate to advanced content levelIntermediate to advanced
1752 pages
41h 17m
English
Apress
Content preview from Pro C# 2010 and the .NET 4 Platform, Fifth Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner
Visual C++ 2008: How to Program, Second Edition

Visual C++ 2008: How to Program, Second Edition

P. J. Deitel, H. M. Deitel, D. T. Quirk

Publisher Resources

ISBN: 9781430225492Purchase book