Assembly A - ResourceDictionary contains StyleA style. Assembly B - ResourceDictionary.MergedDictionaries to merge resources from Assembly A into B.
I would
Try adding TargetType="{x:Type Button}" to your 'StyleB'.