WPF Designer sample code is posted
If you want to author custom design-time experiences for your WPF controls, this is a good place to start.
We have samples for custom adorners, context menus, property value editors, and advanced scenarios. This code is written for Visual Studio 2010 Beta 2, but you should have luck with the Beta 1 bits. A Silverlight example is in preparation but isn’t posted yet.
Check out the code here: WPF and Silverlight Designer Extensibility Samples.
- Context menus
- Default initializers
- All of the ModelItem features, such as selection manipulation.
- Property grid extensibility (same as Blend 2)
Custom dialog property editor that launches a dialog to set a FileName property
Custom inline property value editor
Custom extended property value editor
Custom adorner that sets the Autosize property
Custom rail adorner that adjusts the opacity of a control
Custom rail adorner that adjusts the RenderTransform of a control
Custom adorner that enables in-place text editing
Custom context menu that sets the Background of a control
Custom feature connector that displays the pending and activated designer features
Surrogate policy that enables a custom primary selection policy