<Style TargetType="{x:Type Wizard:TabControlWizard}" BasedOn="{StaticResource {x:Type TabControl}}">
</Style>
Or C# Code
Style _style = new Style(typeof(TabControlWizard), TryFindResource(typeof(TabControl)) as Style);
//add Style to Resources without KEY
this.Resources.Add(typeof(TabControlWizard), _style);
Reference more : http://blog.davidsilvasmith.com/2008/12/coding-wpf-styles-in-c.html
No comments:
Post a Comment