Expression > Форумы > Expression Blend + SketchFlow > Feature Request: Design Attached Dependency Property for DataContext Type
Задайте вопросЗадайте вопрос
 

Общие обсужденияFeature Request: Design Attached Dependency Property for DataContext Type

  • 30 июня 2009 г. 21:09Joey Wood Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    I would like to use the "Explicit Data Context" feature when setting data bindings, but I'm not setting the DataContext in XAML.  I am setting it in code behind for various reasons.  Couldn't there be an attached property in the "d" namespace like "d:DataContextType"?  Since I know what type the object will be or perhaps an interface it will implement, couldn't the Explicit Data Context feature use that when present to get type information to use in data bindings?  It would also be great if the Explicit Data Context feature showed up in the Data tab that is new in Blend 3.

Все ответы