1

I have a assembly(dll) that is defining a number of user controls in one of the user controls I have some XAML like so

<UserControl>
<UserControl.Resources>
<Style x:Key="roundTextBox" TargetType="{x:Type TextBox}">
    <Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
     .
     .
     .
     .

    </Style>
   <grid>...</grid>
</UserControl.Resources>

how can I reshare this style across all my user control xaml files thanks

Rahul
  • 2,194
  • 4
  • 31
  • 46

1 Answers1

2

put it in Application.Resources instead of UserControl.Resources

basarat
  • 261,912
  • 58
  • 460
  • 511