You should use FrameworkElement.SetResourceReference if you want true DynamicResource behaviour – ie updating of the target element when the resource changes.
tb.SetResourceReference(Control.StyleProperty, "FormLabelStyle")
You should use FrameworkElement.SetResourceReference if you want true DynamicResource behaviour – ie updating of the target element when the resource changes.
tb.SetResourceReference(Control.StyleProperty, "FormLabelStyle")