Debugging Data Bindings in a WPF or Silverlight Application

The WPF and Silverlight platforms use late bound data binding resolution for bindings in XAML files. This feature allows a DataContext to be set at run-time and the objects within that DataContext to resolve their property bindings then. This late binding enables cool features like DataTemplates, composable applications and run-time loading of loose XAML. A…

4

Tips and Tricks for working with the WPF and Silverlight Designer in Visual Studio 2010

This article is a collection of tips and tricks that we have gathered over the time we’ve spent building and using the Visual Studio 2010 WPF and Silverlight Designer, which you might not find elsewhere. We think they make working in the designer more fun and productive experience – we hope you’ll agree! Table of…

7

Sample Data in the WPF and Silverlight Designer

Objective Requirements Retail release of Visual Studio 2010 and the latest Silverlight 4 tools for Visual Studio 2010. Table of Contents Background Faux Types and Real Types Images in Sample Data Files Adding New Sample Data File Consuming Sample Data File WPF Sample Data Scenarios Silverlight Sample Data Scenarios WCF RIA Services Sample Data Scenario…

3

Known Issue: Control Design-Time Assemblies File Locking When Using WPF and Silverlight Designer

File Locking Issues when using WPF and Silverlight Designer When creating and testing a registered assembly (e.g. an assembly registered via TCI), it is possible to run into a file locking issue that causes compilation to fail.  While there are a few different manifestations of this particular issue, the root cause is the same.  Visual…

0

Three New WPF and Silverlight Designer Videos Posted

The WPF and Silverlight Designer Team has posted the following new widescreen videos: Layout Techniques for Windows Forms Developers Grid Control Design-Time Row and Column Manipulation Features Creating and Consuming Resource Dictionaries in WPF and Silverlight Each video has a link to a corresponding article. Videos can be viewed using the Silverlight player or downloaded…

0

How to Enable Using the Binding Builder in WPF and Silverlight Applications

When the Data Sources Window is used to generate the UI, the generated XAML injects design-time information so that the Binding Builder can be used to create bindings for the UI controls. What if your application was written in Visual Studio 2005 or 2008; or you used the XAML Editor, the Designer or Expression Blend…

2

Using WPF and Silverlight UserControls

UserControls promote code reuse, separation of concerns and simplify development by partitioning applications into smaller blocks of code. In this article you’ll learn why you would use a UserControl, how to create one from the Toolbox, understand when design-time code executes and how to prevent blocks of code from running at design-time. Table of Contents…

13

Layout Techniques for Windows Forms Developers

This article has a corresponding video that can be viewed here. In a typical Windows Forms application control placement is set using the Location property, setting the X and Y sub property values. The Windows Forms designer provides a complete set of tools for aligning and sizing controls. The WPF and Silverlight platforms are different…

5

Creating and Consuming Resource Dictionaries in WPF and Silverlight

This article has a corresponding video that can be viewed here. Resource Dictionaries are a powerful feature in WPF and Silverlight that enable developers to organize and consume reusable resources. After completing this walk through you’ll understand how to create and merge resource dictionaries in WPF and Silverlight; how to add, consume and modify resources…

9

Create Silverlight Master – Detail UI Using Data Sources Window Object DataSource

This article has a corresponding video that can be viewed here. Master – Detail layouts are the bread and butter of Line of Business (LOB) applications. This walkthrough will show you how to drag & drop from the Data Sources Window to create the UI that is sourced from an Object DataSource. This article has…

8