home screen

Search



Number Of Result : 0

Result :


Wednesday, February 4, 2009

BaseOn UIElement's Style without Key


<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: