So, here is the situation: I have a solution with two projects in it. My main project which contains App.xaml has a style meant for buttons. It looks something like this:
<Style x:Key="GlassButtonLeftFlat" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button" x:Key="GlassButton">
...more xaml....
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
In my other project which is a Silverlight Class Library included in my solution needs to use that style for its buttons. So in one of my XAML files I have something like this:
<Button Style="{StaticResource GlassButtonLeftFlat}"></Button>
Unfortunately it gives me an error:
Error 1 Cannot find a Resource with that Name/Key [Line: 41 Position: 65]
Does anyone know how I can properly reference that style contained in my App.xaml?