This question is locked. New answers and comments are not allowed.
hey all, i have a question about tabcontrol, if i set up the tabcontrol style first,like
and during the runtime, i'd like change the fontcolor of tabheader to red (default is set up as black), how can i do it?
cheers all
var s = new Style(typeof(RadTabItem));s.Setters.Add(new Setter(RadTabItem.HeaderTemplateProperty, App.Current.Resources["ColorTabHeader"] as DataTemplate));radTabThing.ItemContainerStyle = s;<DataTemplate x:Key="ColorTabHeader"> <Grid> <ContentControl Content="{Binding Header}" Foreground="{Binding FontColor}" /> </Grid></DataTemplate>and during the runtime, i'd like change the fontcolor of tabheader to red (default is set up as black), how can i do it?
cheers all
