Reputation: 5284
I am developing a custom control containing a set of icons that present different status of a device. It works after binding datacontext.
This is the XAML.
This is what it is in EDIT mode after it is dragged to a Window.
So, as you can see here ,it's totally blind.
Is there possible to place a fake image as a replacement while it is in edit mode?
How?
Thanks
Upvotes: 1
Views: 52
Reputation: 5536
You need to add design instance dataContext. use the d:DataContext attribute to set the data context to some static reference of your actual class and you will get design time data
here is a good walkthrough: http://msdn.microsoft.com/en-us/library/ff602274(v=vs.95).aspx
Upvotes: 1