I want to create in the code the equivalent of this in XAML:
<TextBlock Text="Title:" Width="{Binding FormLabelColumnWidth}" Style="{DynamicResource FormLabelStyle}"/>
I can make the text and width, but how to assign a dynamic resource to the style:
TextBlock tb = new TextBlock(); tb.Text = "Title:"; tb.Width = FormLabelColumnWidth; tb.Style = ???
c # styles wpf xaml code-behind
Edward Tanguay Nov 18 '09 at 9:04 2009-11-18 09:04
source share