Hi
It is not big deal but I've noticed interesting thing if you try to provide design data via Blend (Data Tab, Create Sample Data from class, Sample from VM).
So, in View I use XAML and bunch of Template Selectors for rows, cells etc..
If I create sample data in VM constructor like this:
ctor (){
If (designTime) {Datacontext= new VMClass(){assign some stuff here});
}
GridView take into consideration Selectors.
But if I use Blend feature :
It is not big deal but I've noticed interesting thing if you try to provide design data via Blend (Data Tab, Create Sample Data from class, Sample from VM).
So, in View I use XAML and bunch of Template Selectors for rows, cells etc..
If I create sample data in VM constructor like this:
ctor (){
If (designTime) {Datacontext= new VMClass(){assign some stuff here});
}
GridView take into consideration Selectors.
But if I use Blend feature :
d:
DataContext="{d:DesignData /SampleData/CustomerLedgerVMSampleData1.xaml}"> Selectors dont' considered for design time , though data from sample file is binded.