Question : How to change Caption of Header at Runtime?

I am using Silverlight 3.0.



   
        eaderStyle>
           
        HeaderStyle>
   



How can I change Caption set by txtCol2 (which is "12/28/2009") in the code at runtime?

Thanks,
Ashok

Answer : How to change Caption of Header at Runtime?

OK. Let's do first steps:
Binding:


Property:
In ViewModel you need to create property: see code below

A special link for you:  
http://dl.infragistics.com/pixel8/media/Screencasts/mvvm/wpf/Full/pixel8-mvvm-wpf.wmv  




1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
public string Email
        {
            get { return _customer.Email; }
            set
            {
                if (value == _customer.Email)
                    return;

                _customer.Email = value;

                base.OnPropertyChanged("Email");
            }
        }
Random Solutions  
 
programming4us programming4us