I love the feature in Blend where you can setup databinding to CLR Objects, and design your Silverlight control/page. My issue is around the creation of a user control that will be used as a DataTemplate. It all works great in Blend, but only at design time. The issue is that when I am editing the control in Blend, and I bind say a textbox to the property of a CLR object, it gives me this:
Text="{Binding Mode=OneWay, Path=TestAccount.Name, Source={StaticResource TestDataDS}}"
But when I am ready to run the app, and use that user control inside a DataTemplate for say a list box, I need it to just look like this:
Text="{Binding Mode=OneWay, Path=Name}"
How can I use the nifty binding to design in Belnd, but not have to touch/search&replace all these bindings when I am ready to run the project? I am looking for an approach that will work both in design time and at run time.
Thanks,