Thanks its working now.
My next questions are related to performance and data binding to real data object and using
this data in ItemsSource and DataContext...
1.Can you provide me working example how to use control.SetDataContext and control.SetItemsSource
who are using BaseComponent as parameter to bind c# data object
We have for example;
class Person
{
string name;
int age;
DateTime born;
}
so should we make something like that
class Person:DependencyObject
{
DependencyProperty name; //what type?
DependencyProperty age;// SWIGTYPE_p_int ?
DependencyProperty born;
}
binding:
Person person = new Person();
//initialize members
control.SetDataContext(person);
Collection items = new Collection();
items.Add(person1);
items.Add(person2);
....
control.SetItemsSource(items );
2. Do you plan to make any VirtualizingPanel?
For example:
I dynamically added 1000 Buttons to ScrollView->StackPanel.Items, only 20 visible on the screen
with ScrollView. Memory consumption in TaskManager was 2Gb....
and very long loading time.
Is there any better performance when using DataTemplates and data binding..
I hope that you understand, what I am thinking about.