SL4 does this OOB. The ImplicitStyleManager was deprecated. SL4 is so close
to be released that I would suggest to use it for any new development even
if its just for this feature.

On Wed, Mar 31, 2010 at 1:27 AM, Stephen Price <step...@perthprojects.com>wrote:

> You can use the Silverlight toolkit to apply your theme.xaml file and then
> put implicit styles in that theme file.
>
> Its funny, I was surprised you couldn't do it, had forgotten I was using
> the toolkit to apply my implicit styles. Glad its part of SL4.
>
>
> On Wed, Mar 31, 2010 at 2:53 PM, ross <r...@perenni.com.au> wrote:
>
>> In WPF you can do this in say your app.xaml or in a merged dictionary:
>>
>>  <Application.Resources>
>>    <Style TargetType="Button">
>>      <Setter Property="Background" Value="Red"/>
>>    </Style>
>>  </Application.Resources>
>>
>> And all buttons will be red unless the style is overridden.
>>
>> This doesn't work in Silverlight 3.  You have to name the style then
>> reference it as a static resource:
>>
>>  <Style TargetType="Button" x:Name="buttonStyle">
>>      <Setter Property="Background" Value="Red"/>
>>    </Style>
>>
>> <Button Style="{StaticResource buttonStyle}"></Button>
>>
>> Of course you can do this via the UI in Blend as well.
>>
>> I think it might be possible to set implicit styles in Silverlight 4
>> but haven't tried.
>>
>> On Wed, Mar 31, 2010 at 4:19 PM, Scott Barnes <scott.bar...@readify.net>
>> wrote:
>> > In WPF you can set global styles but in SIlverlight it's
>> right+click+Apply
>> > Style right? ie i'm not high in thinking that am I?
>> >
>> >
>> >
>> > J
>> >
>> >
>> >
>> > _______________________________________________
>> > ozsilverlight mailing list
>> > ozsilverlight@ozsilverlight.com
>> > http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>> >
>> >
>> _______________________________________________
>> ozsilverlight mailing list
>> ozsilverlight@ozsilverlight.com
>> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>>
>
>
> _______________________________________________
> ozsilverlight mailing list
> ozsilverlight@ozsilverlight.com
> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>
>


-- 
Miguel A. Madero Reyes
www.miguelmadero.com (blog)
m...@miguelmadero.com
_______________________________________________
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to