Поделиться через


A sample that shows the new Blend design surface extensibility

Based on popular demand, here is a quick sample (WPF only though it would be very easy to port this as-is to Silverlight - currently busy with Blend 3 work and all the cool newer features we are adding to Blend 3) that will allow you to get started on the following new extension points we have added to Blend 3:
a) The new way to specifying metadata for your controls
b) DefaultInitializer that allows you to set properties when a control in instantiated from the Blend asset library
c) Custom context menus
d) An adorner for the control

Let me know if you wanted some samples for any specific scenarios you might be interested in.

 

Comments

  • Anonymous
    March 27, 2009
    PingBack from http://blog.a-foton.ru/index.php/2009/03/27/a-sample-that-shows-the-new-blend-design-surface-extensibility/

  • Anonymous
    March 27, 2009
    We have an adorner that we use to trigger an action and were using code like this            Task optionsTask = new Task();            optionsTask.InputBindings.Add(new InputBinding(OpenCommand, new ToolGesture(ToolAction.Click)));            optionsTask.ToolCommandBindings.Add(new ToolCommandBinding(OpenCommand, new ExecutedToolEventHandler(OnOpenCommand)));            AdornerPanel.SetTask(panelChild, optionsTask); Where panelChild is a child of an adorner panel. This used to work in VS2008 but the handler never gets executed in Blend 3 A sample showing this would be greatly appreciated.

  • Anonymous
    March 27, 2009
    Thank you for submitting this cool story - Trackback from DotNetShoutout

  • Anonymous
    March 28, 2009
    Hi Juan, It looks like you are trying to do parent/placement adapter stuff? If so, that is not something we support in Blend 3. If you could get in touch with me offline at unnir at microsoft dot com, we can talk about options by understanding your scenario in greater detail. Thanks!

  • Anonymous
    April 20, 2009
    The comment has been removed

  • Anonymous
    May 03, 2009
    You know the drill. Raw/unedited conversations from our internal discussions.  Subject: Datagrid

  • Anonymous
    May 19, 2009
    As part of my role in working with partners in the Visual Studio Industry Partner (VSIP) Program I have

  • Anonymous
    July 26, 2009
    details infrared meteorological sres trend cfcs political