This is a migrated thread and some comments may be shown as answers.

Design Data via Blend

0 Answers 37 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Vit100
Top achievements
Rank 1
Vit100 asked on 16 May 2011, 05:36 PM
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 :

d:

 

 

DataContext="{d:DesignData /SampleData/CustomerLedgerVMSampleData1.xaml}"> Selectors dont' considered for design time , though data from sample file is binded.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Vit100
Top achievements
Rank 1
Share this question
or